/* =========================================================
   LIWENZA — feuille de style
   Palette : charte LIWENZA (bleu marine, violet, gris clair)
   + or de la plaquette commerciale, utilisé avec parcimonie.

   Fluidité : toutes les animations n'utilisent que transform / opacity
   (calculées par la carte graphique), avec une même courbe d'accélération.
   ========================================================= */

:root {
  --navy: #1E2B6B;
  --navy-deep: #161F50;
  --navy-ink: #111842;
  --violet: #5B1F6E;
  --gold: #C9A24B;
  --gold-soft: #E2C88A;
  --paper: #F0F1F8;
  --line: #DCDEEB;
  --ink: #1B1F3B;
  --muted: #5B6080;
  --white: #FFFFFF;

  --font: "Montserrat", "Gotham", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1200px;
  --section: clamp(72px, 10vw, 136px);
  --header-h: 76px;

  /* Une seule famille de courbes : départ vif, arrivée très douce */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Défilement amorti (Lenis) — règles recommandées par la bibliothèque */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { -webkit-tap-highlight-color: transparent; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

::selection { background: var(--navy); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typographie utilitaire ---------- */
.eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}
.eyebrow-gold { color: var(--gold); }

.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}
.lead-sm { font-weight: 300; color: var(--muted); font-size: 1.06rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color .35s var(--ease), color .35s var(--ease),
    border-color .35s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); transition-duration: .1s; }
.btn-sm { min-height: 42px; padding: 10px 20px; font-size: .85rem; }
.btn-lg { min-height: 58px; padding: 16px 24px; font-size: .95rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy-ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-outline { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }

/* Bouton d'appel principal : relief, flèche et liseré or */
.btn-cta {
  position: relative;
  box-shadow: 0 14px 28px -14px rgba(30, 43, 107, .7), inset 0 -3px 0 var(--gold);
}
.btn-arrow {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s var(--ease);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .92rem;
  color: var(--navy);
  text-decoration: none;
  padding: 12px 0;
}
.link-arrow::after {
  content: ""; width: 36px; height: 1px; background: currentColor;
  transform: scaleX(.62); transform-origin: left;
  transition: transform .45s var(--ease);
}

/* Les effets de survol ne s'appliquent qu'avec une souris (pas de survol « collé » au tactile) */
@media (hover: hover) {
  .btn-primary:hover { background: var(--violet); }
  .btn-gold:hover { background: var(--gold-soft); }
  .btn-ghost:hover { border-color: var(--white); }
  .btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
  .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px -16px rgba(91, 31, 110, .75), inset 0 -3px 0 var(--gold);
  }
  .btn-cta:hover .btn-arrow { transform: translateX(4px); }
  .link-arrow:hover::after { transform: scaleX(1); }
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
/* Verre dépoli seulement sur ordinateur : coûteux à l'affichage sur téléphone */
@media (hover: hover) and (min-width: 960px) {
  .site-header {
    background: rgba(255,255,255,.88);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
  }
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(22, 31, 80, .35);
}

/* Fil de progression de lecture, sous l'en-tête */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--violet));
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 20px; height: 38px; --mark-a: var(--navy); --mark-b: var(--violet); }
.brand-name {
  font-weight: 700; font-size: 1.22rem; letter-spacing: .04em;
  color: var(--navy);
  line-height: 1;
  padding-top: 12px;
}
.brand-light .brand-mark { --mark-a: var(--white); --mark-b: var(--gold); }
.brand-light .brand-name { color: var(--white); }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  position: relative;
  font-size: .86rem; font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.main-nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) { .main-nav a:hover::after { transform: scaleX(1); } }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-icon { display: grid; gap: 7px; width: 24px; }
.menu-icon i {
  display: block; height: 1.5px; background: var(--navy);
  transition: transform .45s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--navy);
  color: var(--white);
  padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu nav a {
  display: block; padding: 16px 0;
  font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none;
}
/* Les liens arrivent l'un après l'autre */
.mobile-menu nav li, .mobile-menu-foot {
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.mobile-menu.is-open nav li, .mobile-menu.is-open .mobile-menu-foot { opacity: 1; transform: none; }
.mobile-menu.is-open nav li:nth-child(1) { transition-delay: .08s; }
.mobile-menu.is-open nav li:nth-child(2) { transition-delay: .12s; }
.mobile-menu.is-open nav li:nth-child(3) { transition-delay: .16s; }
.mobile-menu.is-open nav li:nth-child(4) { transition-delay: .20s; }
.mobile-menu.is-open nav li:nth-child(5) { transition-delay: .24s; }
.mobile-menu.is-open nav li:nth-child(6) { transition-delay: .28s; }
.mobile-menu.is-open .mobile-menu-foot { transition-delay: .34s; }
.mobile-menu-foot { padding-top: 32px; }
.mobile-menu-foot p {
  margin-top: 18px; text-align: center;
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Accueil ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero h1 .accent { display: block; color: var(--violet); font-weight: 500; }
.hero .lead { max-width: 34em; margin-bottom: 36px; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.hero-free {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px;
  font-size: .84rem; color: var(--muted);
}
.hero-free .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, .2);
}

.hero-proofs {
  display: flex; flex-wrap: wrap;
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line);
  gap: 16px 0;
}
.hero-proofs li {
  flex: 1 1 0; min-width: 130px;
  font-size: .86rem; line-height: 1.45; color: var(--muted);
  padding-right: 20px;
}
.hero-proofs li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-proofs strong { display: block; color: var(--navy); font-weight: 600; }

/* Visuel : réagit au mouvement de la souris (--px / --py posées en JS, de -1 à 1) */
.hero-visual {
  --px: 0; --py: 0;
  position: relative;
  perspective: 1200px;
}
.hero-visual::before {
  /* filet or, écho de la plaquette — plan le plus éloigné */
  content: ""; position: absolute;
  top: 8%; bottom: 14%; left: -22px;
  width: 3px; background: var(--gold);
  transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -10px), 0);
}
.hero-media {
  overflow: hidden;
  transform: rotateY(calc(var(--px) * 3deg)) rotateX(calc(var(--py) * -3deg));
  will-change: transform;
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 13 / 13.9;
  object-fit: cover;
  object-position: center top;
  /* légèrement agrandie pour pouvoir glisser sans montrer de bord */
  transform: scale(1.08) translate3d(calc(var(--px) * -2.2%), calc(var(--py) * -2.2%), 0);
  will-change: transform;
}
.hero-note {
  position: absolute; left: -48px; bottom: -36px;
  max-width: 300px;
  background: var(--navy);
  color: rgba(255,255,255,.86);
  padding: 22px 26px;
  font-size: .86rem; line-height: 1.55; font-weight: 300;
  box-shadow: 0 24px 48px -28px rgba(17, 24, 66, .6);
  transform: translate3d(calc(var(--px) * 18px), calc(var(--py) * 14px), 0);
  will-change: transform;
}
.hero-note-label {
  display: block; margin-bottom: 6px;
  color: var(--gold); font-weight: 600; font-size: .95rem;
}

/* Entrée de l'accueil au chargement : textes en cascade, image dévoilée de bas en haut.
   (fill-mode « backwards » : une fois jouée, l'animation rend la main aux styles normaux) */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes unveil {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes grow-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.js .hero-text > * { animation: rise 1.1s var(--ease) backwards; }
.js .hero-text > :nth-child(1) { animation-delay: .05s; }
.js .hero-text > :nth-child(2) { animation-delay: .13s; }
.js .hero-text > :nth-child(3) { animation-delay: .21s; }
.js .hero-text > :nth-child(4) { animation-delay: .29s; }
.js .hero-text > :nth-child(5) { animation-delay: .35s; }
.js .hero-text > :nth-child(6) { animation-delay: .41s; }
.js .hero-media { animation: unveil 1.5s var(--ease) .15s backwards; }
.js .hero-visual::before { transform-origin: top; animation: grow-y 1.4s var(--ease) .45s backwards; }
.js .hero-note { animation: rise 1.1s var(--ease) .7s backwards; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head-row {
  max-width: none;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 48px;
}
.section-intro { max-width: 30em; color: var(--muted); font-weight: 300; }

/* ---------- Pourquoi ---------- */
.why { padding: clamp(72px, 9vw, 120px) 0; }
.why-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.why h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }

.risks { margin-bottom: 32px; }
.risks li {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 1.02rem; color: rgba(255,255,255,.6);
}
.risks li::before {
  content: ""; flex: none;
  width: 14px; height: 1.5px; background: var(--gold);
}
.why-answer { font-size: 1.08rem; font-weight: 300; line-height: 1.7; }
.why-answer strong { color: var(--white); font-weight: 600; }

/* Programmes : autofinancement / acquisition */
.programs { margin-top: clamp(56px, 7vw, 88px); }
.programs-intro {
  font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.programs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.program {
  padding: clamp(26px, 3.5vw, 40px);
  border: 1px solid rgba(255,255,255,.16);
  border-top: 3px solid var(--gold);
  background: rgba(255,255,255,.03);
  transition: background-color .45s var(--ease), border-color .45s var(--ease);
}
@media (hover: hover) {
  .program:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); border-top-color: var(--gold); }
}
.program-case {
  display: inline-block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 500; color: var(--gold-soft);
}
.program h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: 12px; }
.program p:last-child { font-weight: 300; font-size: .97rem; }

/* ---------- Métiers ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  position: relative;
  isolation: isolate;
  padding: 40px clamp(20px, 3vw, 40px) 8px;
  border-right: 1px solid var(--line);
}
.service:first-child { padding-left: 0; }
.service:last-child { border-right: 0; padding-right: 0; }

/* Numéro de la rubrique : à gauche, au-dessus du titre */
.service-index {
  display: block; margin-bottom: 14px;
  font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  color: rgba(30, 43, 107, .12);
  transition: color .6s var(--ease);
}
.service h3 { font-size: 1.6rem; margin-bottom: 14px; overflow: hidden; transition: color .45s var(--ease); }
.service h3 > span { display: inline-block; padding-bottom: .12em; margin-bottom: -.12em; } /* ne pas couper les jambages */
.service > p { color: var(--muted); margin-bottom: 26px; }

.ticks li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: .92rem;
  border-top: 1px solid var(--line);
  transition: border-color .45s var(--ease);
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em;
  width: 10px; height: 5px;
  border-left: 1.5px solid var(--violet); border-bottom: 1.5px solid var(--violet);
  transform: rotate(-45deg);
}

/* État actif : survol à la souris, ou carte au centre de l'écran sur téléphone */
.service.is-active .service-index { color: rgba(201, 162, 75, .55); }
.service.is-active h3 { color: var(--violet); }
.service.is-active .ticks li { border-top-color: #CBCFE2; }
@media (hover: hover) {
  .service:hover .service-index { color: rgba(201, 162, 75, .55); }
  .service:hover h3 { color: var(--violet); }
  .service:hover .ticks li { border-top-color: #CBCFE2; }
}

/* Animation au défilement :
   filet or tracé en haut → numéro et titre qui montent → texte → liste ligne par ligne.
   Sur grand écran, les colonnes glissent à des vitesses différentes (--sp, posé en JS). */
.service:nth-child(1) { --depth: 0; }
.service:nth-child(2) { --depth: 28; }
.service:nth-child(3) { --depth: 56; }
.js .service.reveal {
  opacity: 1;
  transform: translate3d(0, calc(var(--sp, 0) * var(--depth, 0) * 1px), 0);
  transition: none;
}
.js .service::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease), height .3s var(--ease);
}
.js .service-index {
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity .9s var(--ease), transform 1s var(--ease), color .6s var(--ease);
}
.js .service h3 > span {
  transform: translate3d(0, 105%, 0);
  transition: transform 1s var(--ease) .1s;
}
.js .service > p {
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity .9s var(--ease) .25s, transform 1s var(--ease) .25s;
}
.js .service .ticks li {
  opacity: 0; transform: translate3d(-12px, 0, 0);
  transition: opacity .7s var(--ease), transform .8s var(--ease), border-color .45s var(--ease);
}
.js .service .ticks li:nth-child(1) { transition-delay: .45s; }
.js .service .ticks li:nth-child(2) { transition-delay: .55s; }
.js .service .ticks li:nth-child(3) { transition-delay: .65s; }
.js .service .ticks li::before { transform: rotate(-45deg) scale(0); transition: transform .5s var(--ease); }

.js .service.is-visible::before { transform: scaleX(1); }
.js .service.is-visible .service-index,
.js .service.is-visible h3 > span,
.js .service.is-visible > p,
.js .service.is-visible .ticks li { opacity: 1; transform: none; }
.js .service.is-visible .ticks li::before { transform: rotate(-45deg) scale(1); transition-delay: .8s; }
.js .service.is-visible.is-active::before { height: 4px; }
@media (hover: hover) { .js .service.is-visible:hover::before { height: 4px; } }

/* décalage entre colonnes */
.js .services .service:nth-child(2)::before,
.js .services .service:nth-child(2) .service-index { transition-delay: .12s; }
.js .services .service:nth-child(3)::before,
.js .services .service:nth-child(3) .service-index { transition-delay: .24s; }

/* ---------- Parcours ----------
   Frise verticale pilotée par le défilement.
   Sur grand écran, la section reste épinglée (.is-pin) : on fait défiler les étapes,
   l'étape active s'ouvre, le compteur et la ligne or avancent. */
.parcours { background: var(--paper); }
.parcours-sticky { padding: var(--section) 0; }
.parcours-eyebrow { margin-bottom: clamp(20px, 3vw, 36px); }
.parcours-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}

.parcours-intro { display: flex; flex-direction: column; justify-content: center; }
.parcours-counter {
  display: flex; align-items: baseline; gap: 12px;
  margin: 4px 0 18px;
  line-height: .9;
}
.pc-current {
  display: inline-block;
  font-size: clamp(7rem, 15vw, 12.5rem); font-weight: 700; letter-spacing: -0.05em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.pc-total { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 600; color: var(--gold); }
.parcours-current {
  font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 700; letter-spacing: -0.01em;
  color: var(--violet); min-height: 2.6em; max-width: 14em; line-height: 1.25;
}

.steps-wrap { position: relative; }
.steps-track {
  position: absolute; left: 7px; width: 2px;
  top: var(--track-top, 24px); height: var(--track-h, calc(100% - 48px));
  background: var(--line);
}
.steps-fill {
  position: absolute; inset: 0;
  background: linear-gradient(var(--gold), var(--violet));
  transform: scaleY(0); transform-origin: top;
  will-change: transform;
}
.steps { position: relative; }

.step { position: relative; padding-left: 44px; }
.step-dot {
  position: absolute; left: 0; top: 23px; z-index: 1;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper);
  border: 2px solid #C5C8DA;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.step-card {
  padding: 14px 22px;
  border-radius: 2px;
  transition: background-color .6s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease);
}
.step h3 { font-size: inherit; letter-spacing: 0; }
.step-head {
  display: flex; flex-direction: column; gap: 4px;
  width: 100%; padding: 0;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.step-num {
  font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--violet);
}
.step-title {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem); font-weight: 700; letter-spacing: -0.01em;
  color: var(--navy);
  transition: color .5s var(--ease);
}
.step-body p { padding-top: 8px; font-size: .95rem; color: var(--muted); line-height: 1.65; }

/* États pilotés en JS */
.js .step .step-title { color: #9A9EB8; }
.js .step.is-done .step-title, .js .step.is-active .step-title { color: var(--navy); }
.js .step.is-done .step-dot { background: var(--navy); border-color: var(--navy); }
.js .step.is-active .step-dot {
  background: var(--gold); border-color: var(--gold);
  transform: scale(1.15);
  box-shadow: 0 0 0 7px rgba(201, 162, 75, .22);
}
.js .step.is-active .step-card {
  background: var(--white);
  box-shadow: 0 22px 44px -28px rgba(30, 43, 107, .45);
  transform: translate3d(6px, 0, 0);
}
@media (hover: hover) { .step-head:hover .step-title { color: var(--violet) !important; } }

/* Mode épinglé : seule l'étape active montre son texte */
.parcours.is-pin .parcours-track { height: 300vh; }
.parcours.is-pin .parcours-sticky {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column;
  padding: clamp(40px, 9vh, 96px) 0 clamp(24px, 5vh, 56px);
}
.parcours.is-pin .parcours-sticky > .container { width: 100%; }
.parcours.is-pin .parcours-grid { flex: 1; align-content: center; }
.parcours.is-pin .step-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease);
}
.parcours.is-pin .step-body > p { overflow: hidden; opacity: 0; transition: opacity .45s var(--ease); }
.parcours.is-pin .step.is-active .step-body { grid-template-rows: 1fr; }
.parcours.is-pin .step.is-active .step-body > p { opacity: 1; transition-delay: .15s; }

/* ---------- Blocs image + texte ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.split-reverse > :first-child { order: 2; }
.split-text h2 { margin-bottom: 22px; }
.split-text > p { margin-bottom: 18px; color: var(--muted); }
.split-text .lead-sm { margin-bottom: 36px; }

.framed { position: relative; isolation: isolate; overflow: hidden; }
.framed img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }

/* Photo calée dans sa colonne : occupe toute la hauteur réservée */
.framed-fill { align-self: stretch; }
.framed-fill img { height: 100%; min-height: 440px; aspect-ratio: auto; object-position: center; }

/* L'image se pose doucement quand elle apparaît */
.js .framed img { transform: scale(1.08); transition: transform 1.8s var(--ease); }
.js .framed.is-visible img { transform: none; }

.tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--navy); color: var(--white);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 16px;
}

.features li {
  display: flex; gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.features li:last-child { border-bottom: 1px solid var(--line); }
.features h3 { font-size: 1.04rem; margin-bottom: 4px; }
.features p { font-size: .93rem; color: var(--muted); }

.ic {
  flex: none; width: 26px; height: 26px; margin-top: 2px;
  fill: none; stroke: var(--violet); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-gold { stroke: var(--gold); }

/* ---------- Synthèse de projet (tableau de bord) ---------- */
.dashboard {
  margin-top: clamp(64px, 8vw, 104px);
  background: var(--navy);
  color: rgba(255,255,255,.82);
  border-top: 3px solid var(--gold);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 40px 70px -50px rgba(17, 24, 66, .8);
}
.dash-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px 40px; margin-bottom: 32px;
}
.dash-kicker {
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.dash-title { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.dash-note { font-size: .9rem; font-weight: 300; max-width: 26em; }

.dash-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 28px;
}
.kpi {
  position: relative;
  padding: 18px 20px;
  background: rgba(255,255,255,.06);
  border-left: 2px solid var(--gold);
}
.kpi dt {
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 8px;
}
.kpi dd {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; color: var(--white);
  letter-spacing: -0.01em; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.kpi dd small { font-size: .62em; font-weight: 500; color: rgba(255,255,255,.7); }
.kpi-bar {
  display: block; height: 4px; margin-top: 12px;
  background: rgba(255,255,255,.14);
}
.kpi-bar > span, .bar > span {
  display: block; height: 100%; width: calc(var(--v) * 100%);
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform-origin: left;
}

.dash-table-wrap { background: var(--white); overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .9rem; color: var(--ink); }
.dash-table th, .dash-table td { padding: 14px 18px; text-align: left; white-space: nowrap; }
.dash-table thead th {
  background: var(--navy-deep); color: var(--white);
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.dash-table tbody tr { border-bottom: 1px solid var(--line); }
.dash-table tbody th { font-weight: 600; color: var(--navy); white-space: normal; }
.dash-table td { font-variant-numeric: tabular-nums; }
.dash-table tfoot tr { background: var(--violet); color: var(--white); font-weight: 700; }
.dash-table tfoot th { color: var(--white); }
.dash-table td[data-label="Avancement"] { display: flex; align-items: center; gap: 12px; }
.bar { flex: 1; display: block; min-width: 80px; max-width: 160px; height: 6px; background: #E6E8F2; }
.dash-table tfoot .bar { background: rgba(255,255,255,.25); }
.pct { min-width: 3.4em; font-weight: 600; }

/* Les barres se remplissent quand le tableau apparaît */
.js .dashboard .kpi-bar > span, .js .dashboard .bar > span {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease) .3s;
}
.js .dashboard.is-visible .kpi-bar > span, .js .dashboard.is-visible .bar > span { transform: scaleX(1); }
.js .dashboard tbody tr:nth-child(2) .bar > span { transition-delay: .42s; }
.js .dashboard tbody tr:nth-child(3) .bar > span { transition-delay: .54s; }
.js .dashboard tfoot .bar > span { transition-delay: .7s; }

/* ---------- Réalisation ---------- */
.project-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: #d9dbe6;
}
/* Fondu enchaîné : l'image suivante apparaît par-dessus la précédente */
.stage-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease-io), visibility 0s linear .9s;
}
.stage-slide.is-active {
  opacity: 1; visibility: visible; z-index: 1;
  transition: opacity .9s var(--ease-io), visibility 0s;
}
.stage-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 2.2s var(--ease);
}
.stage-slide.is-active img { transform: none; }
.stage-slide[hidden] { display: none; }

.stage-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.stage-tabs button {
  position: relative;
  display: flex; align-items: baseline; gap: 14px;
  padding: 22px 4px 20px;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  color: var(--muted);
  transition: color .4s var(--ease);
}
.stage-tabs button::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px;
  height: 3px; background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.stage-tabs button[aria-selected="true"] { color: var(--navy); }
.stage-tabs button[aria-selected="true"]::before { transform: scaleX(1); }
@media (hover: hover) { .stage-tabs button:hover { color: var(--navy); } }
.tab-num { font-size: .75rem; font-weight: 600; letter-spacing: .16em; color: var(--gold); }
.tab-label { font-weight: 600; font-size: .98rem; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 36px;
}
.facts > div { padding: 4px 24px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.facts dd { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }

/* ---------- Engagements ---------- */
.commitments {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.commit-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 4vw, 56px);
}
.commit-list li { padding: 26px 0; border-top: 1px solid var(--line); }
.commit-list h3 { font-size: 1.08rem; margin-bottom: 8px; }
.commit-list p { font-size: .93rem; color: var(--muted); }

.price-card {
  background: var(--violet);
  color: rgba(255,255,255,.84);
  padding: clamp(28px, 4vw, 44px);
  border-top: 3px solid var(--gold);
}
.price-card .ic { width: 30px; height: 30px; margin-bottom: 22px; }
.price-card h3 { color: var(--white); font-size: 1.45rem; margin-bottom: 14px; }
.price-card p { font-weight: 300; }

/* ---------- À propos : logo ---------- */
.about-logo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(20px, 3vw, 32px);
  aspect-ratio: 4 / 4.2;
  background: var(--white);
  box-shadow: 0 30px 60px -45px rgba(30, 43, 107, .45);
}
.about-logo-mark { width: auto; height: 42%; }
.about-logo-name {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: .04em;
  color: var(--navy); line-height: 1;
}
/* Les deux tours « se construisent » quand le bloc apparaît */
.js .about-logo .about-logo-mark {
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 1.4s var(--ease) .2s;
}
.js .about-logo .about-logo-name {
  opacity: 0; transform: translate3d(0, 12px, 0);
  transition: opacity 1s var(--ease) .7s, transform 1s var(--ease) .7s;
}
.js .about-logo.is-visible .about-logo-mark,
.js .about-logo.is-visible .about-logo-name { opacity: 1; transform: none; }

/* ---------- Contact ---------- */
.contact { padding: var(--section) 0; background: var(--navy); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(44px, 7vw, 112px);
  align-items: start;
}
.contact h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 22px; }
.contact-intro > p { font-weight: 300; font-size: 1.06rem; max-width: 28em; }

.contact-links { margin-top: 44px; }
.contact-links li {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  align-items: baseline;
}
.cl-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.contact-links a, .contact-links span:not(.cl-label) {
  color: var(--white); font-weight: 600; text-decoration: none; word-break: break-word;
  transition: color .35s var(--ease);
}
@media (hover: hover) { .contact-links a:hover { color: var(--gold-soft); } }

.contact-form {
  background: var(--navy-deep);
  padding: clamp(24px, 4vw, 44px);
  border-top: 3px solid var(--gold);
}
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block; padding: 0; margin-bottom: 10px;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(255,255,255,.45); }

.field input[type="text"], .field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  padding: 10px 0;
  font: inherit; font-size: 1rem;   /* 16px min : pas de zoom sur iOS */
  color: var(--white);
  transition: border-color .35s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field input[aria-invalid="true"] { border-bottom-color: #F0A38C; }
.field-error { margin-top: 8px; font-size: .85rem; color: #F5B6A3; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; letter-spacing: 0 !important; text-transform: none !important; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.25);
  font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.82);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.chip input:checked + span { background: var(--white); border-color: var(--white); color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) { .chip:hover span { border-color: rgba(255,255,255,.6); } }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-actions .btn { flex: 1 1 200px; }
.form-note { margin-top: 16px; font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.55; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--navy-ink);
  color: rgba(255,255,255,.66);
  padding: 64px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-tag { margin-top: 18px; max-width: 22em; font-weight: 300; }
.site-footer nav li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; transition: color .35s var(--ease); }
@media (hover: hover) { .site-footer a:hover { color: var(--white); } }
.footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-bottom { padding-top: 24px; font-size: .8rem; color: rgba(255,255,255,.42); }

/* ---------- Barre d'action mobile ---------- */
.mobile-cta { display: none; }

/* ---------- Apparition au défilement ---------- */
.js .reveal {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .commit-list .reveal:nth-child(2) { transition-delay: .08s; }
.js .commit-list .reveal:nth-child(3) { transition-delay: .16s; }
.js .commit-list .reveal:nth-child(4) { transition-delay: .24s; }
.js .programs-grid .reveal:nth-child(2) { transition-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav ul { gap: 22px; }
}

@media (max-width: 959px) {
  :root { --header-h: 66px; }

  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }

  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin: 8px 0 0; }
  .hero-visual::before { display: none; }
  .hero-visual img { aspect-ratio: 4 / 3.4; }
  .hero-note { position: relative; left: auto; bottom: auto; max-width: none; margin: -40px 20px 0; }

  .why-grid, .split, .contact-grid, .commitments, .programs-grid, .parcours-grid { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }

  .services { grid-template-columns: 1fr; border-top: 0; }
  .service, .service:first-child, .service:last-child {
    padding: 32px 0 8px; border-right: 0; border-top: 1px solid var(--line);
  }

  .parcours-grid { gap: 36px; }
  .parcours-counter, .parcours-current { display: none; }
  .step { padding-left: 36px; }
  .step-card { padding: 12px 16px; }
  .js .step.is-active .step-card { transform: none; }

  .framed-fill img { height: auto; min-height: 0; aspect-ratio: 4 / 3.2; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  /* Barre d'action fixe sur mobile (fond plein : pas de flou coûteux) */
  .mobile-cta {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--line);
    transform: translate3d(0, 110%, 0);
    transition: transform .6s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { min-height: 48px; }
  .mobile-cta-wa {
    flex: none; width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); color: var(--navy);
  }
  .mobile-cta-wa svg { width: 24px; height: 24px; fill: currentColor; }
  body.has-mobile-cta .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  body { font-size: .98rem; }

  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
  .hero-actions .btn { width: 100%; }
  .hero-actions { gap: 10px; }
  .hero-proofs { margin-top: 36px; }
  .hero-proofs li, .hero-proofs li + li {
    flex-basis: 100%; padding: 0; border-left: 0;
  }
  .hero-proofs li { display: flex; gap: 6px; font-size: .9rem; }
  .hero-proofs strong { display: inline; }
  .hero-note { margin: -32px 12px 0; padding: 18px 20px; }

  .commit-list { grid-template-columns: 1fr; }

  /* Tableau de bord : le tableau devient une liste de fiches */
  .dashboard { margin-inline: calc(var(--gutter) * -1); padding: 28px 20px; }
  .dash-kpis { gap: 10px; }
  .kpi { padding: 14px 14px; }
  .dash-table-wrap { background: transparent; }
  .dash-table thead { display: none; }
  .dash-table, .dash-table tbody, .dash-table tfoot, .dash-table tr, .dash-table th, .dash-table td { display: block; }
  .dash-table tr { background: var(--white); margin-bottom: 10px; padding: 6px 0; border: 0; }
  .dash-table tbody tr { border-bottom: 0; }
  .dash-table th[scope="row"] { padding: 12px 16px 6px; font-size: 1rem; }
  .dash-table td { display: flex; justify-content: space-between; gap: 16px; padding: 6px 16px; white-space: normal; }
  .dash-table td::before {
    content: attr(data-label);
    font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  }
  .dash-table td[data-label="Avancement"] { display: grid; grid-template-columns: auto 1fr auto; }
  .dash-table tfoot tr { margin-bottom: 0; }
  .dash-table tfoot td::before { color: rgba(255,255,255,.7); }
  .bar { max-width: none; }

  .project-stage { aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); }
  .stage-tabs button { flex-direction: column; gap: 2px; padding: 16px 2px 14px; }
  .tab-label { font-size: .84rem; line-height: 1.3; }

  .facts { grid-template-columns: 1fr 1fr; gap: 22px 0; margin-top: 28px; }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }

  .contact-links li { grid-template-columns: 1fr; gap: 2px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
