/* CITA AI : motion layer for the animated versions (index-v1/v2/v3.html).
   The original index.html never loads this file.
   Level is set on <html data-motion="1|2|3">. Hidden start states only apply once
   motion.js has added .mo-ready, so without JS (or with reduced motion) the page
   is exactly the original, fully visible. */

:root { --mo-ease: cubic-bezier(.22, .61, .36, 1); --mo-dur: .8s; --mo-step: 90ms; }

/* ---------- shared reveal mechanics ---------- */
.mo-ready [data-mo] {
  opacity: 0;
  transition: opacity var(--mo-dur) var(--mo-ease), transform var(--mo-dur) var(--mo-ease), clip-path 1.1s var(--mo-ease);
  transition-delay: calc(var(--mo-i, 0) * var(--mo-step));
  will-change: opacity, transform;
}
.mo-ready [data-mo="up"]    { transform: translateY(18px); }
.mo-ready [data-mo="left"]  { transform: translateX(-42px); }
.mo-ready [data-mo="right"] { transform: translateX(42px); }
.mo-ready [data-mo="fade"]  { transform: none; }
.mo-ready [data-mo="wipe-l"] { opacity: 1; clip-path: inset(0 100% 0 0); }
.mo-ready [data-mo="wipe-r"] { opacity: 1; clip-path: inset(0 0 0 100%); }
.mo-ready [data-mo="wipe-u"] { opacity: 1; clip-path: inset(100% 0 0 0); }
.mo-ready [data-mo].mo-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.mo-ready [data-mo].mo-done { will-change: auto; }

/* items sliding in from the side must never widen the page on a phone */
.mo-ready .trust, .mo-ready .services, .mo-ready .adv2 { overflow-x: clip; }

.mo-ready .adv2__stat strong { font-variant-numeric: tabular-nums; }

[data-motion="2"], [data-motion="3"], [data-motion="4"] { --mo-dur: .95s; }

/* level 1 : shorter, quieter movement */
[data-motion="1"] { --mo-dur: .9s; --mo-step: 80ms; }
[data-motion="1"].mo-ready [data-mo="up"] { transform: translateY(14px); }

/* eyebrow bars draw in (levels 2 and 3) */
.mo-ready .eyebrow--bar[data-mo]::before { transform: scaleY(0); transform-origin: top; transition: transform .6s var(--mo-ease) .25s; }
.mo-ready .eyebrow--bar[data-mo].mo-in::before { transform: scaleY(1); }

/* ---------- level 3 : headline lines rise from a mask ---------- */
.mo-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mo-line > span { display: inline-block; }
.mo-ready .mo-line > span { transform: translateY(105%); transition: transform 1s var(--mo-ease); transition-delay: calc(var(--mo-i, 0) * 120ms + 100ms); }
.mo-ready .mo-lines-in .mo-line > span { transform: none; }

/* ---------- level 3 : reading progress + header ---------- */
.mo-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, #0b5cff, #5aa2ff); transform-origin: left; transform: scaleX(0); }
[data-motion="3"] .nav { transition: box-shadow .35s ease, background .35s ease; }
[data-motion="3"] .nav.mo-scrolled { background: rgba(255,255,255,.97); box-shadow: 0 8px 24px -16px rgba(15, 40, 100, .35); }

/* ---------- level 3 : client logos as a slow continuous strip ---------- */
.mo-marquee { margin-top: 22px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mo-marquee .logos { margin-top: 0; display: flex; width: max-content; row-gap: 0; animation: mo-marquee 46s linear infinite; }
.mo-marquee .logos li { flex: 0 0 auto; width: 230px; border-right: 1px solid #e3e9f4 !important; }
.mo-marquee:hover .logos { animation-play-state: paused; }
@keyframes mo-marquee { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .mo-marquee .logos li { width: 170px; } .mo-marquee .logos { animation-duration: 34s; } }

/* ---------- level 5 : scroll-linked extras ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
[data-motion="5"] .services__list { position: relative; }
.mo-srv-line { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #0b5cff, #5aa2ff);
  transform-origin: top; transform: scaleY(0); border-radius: 2px; pointer-events: none; }
[data-motion="5"] .hero__content { will-change: translate, opacity; }

/* ---------- services strip under the logos: 3 alternatives (html[data-bandeau]) ---------- */
/* A : Numérotée (typography only, number + short line) */
[data-bandeau="a"] .trust .pillars { background: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; counter-reset: pil; }
[data-bandeau="a"] .trust .pillars li { counter-increment: pil; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px;
  padding: 26px 26px 28px; border-right: 1px solid var(--line); font-size: 18px; font-weight: 600; transition: background .3s ease; }
[data-bandeau="a"] .trust .pillars li:last-child { border-right: 0; }
[data-bandeau="a"] .trust .pillars li::before { content: "0" counter(pil); font: 500 13px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; color: var(--blue); margin-bottom: 8px; }
[data-bandeau="a"] .trust .pillars li:hover { background: #f5f8fe; }
[data-bandeau="a"] .pill-ico { display: none; }
.mo-pdesc { font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--muted); }
@media (max-width: 900px) {
  [data-bandeau="a"] .trust .pillars li { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 14px; }
  [data-bandeau="a"] .trust .pillars li:nth-child(odd) { border-right: 1px solid var(--line); }
  [data-bandeau="a"] .trust .pillars li:last-child { border-bottom: 0; }
}
@media (max-width: 560px) { [data-bandeau="a"] .trust .pillars li:nth-child(odd) { border-right: 0; } }

/* B : Parcours (one line that draws itself, each step lights up) */
[data-bandeau="b"] .trust .pillars { position: relative; background: none; border: 0; border-radius: 0; padding: 34px 0 6px; }
[data-bandeau="b"] .trust .pillars::before,
[data-bandeau="b"] .trust .pillars::after { content: ""; position: absolute; left: 10%; right: 10%; top: 40px; height: 2px; background: var(--line); border-radius: 2px; }
[data-bandeau="b"] .trust .pillars::after { background: linear-gradient(90deg, #0b5cff, #5aa2ff); transform-origin: left; transition: transform 1.8s cubic-bezier(.22,.61,.36,1); }
html.mo-ready[data-bandeau="b"] .trust .pillars::after { transform: scaleX(0); }
html.mo-ready[data-bandeau="b"] .trust .pillars.mo-path-in::after { transform: none; }
[data-bandeau="b"] .trust .pillars li { position: relative; flex-direction: column; justify-content: flex-start; gap: 16px; border: 0; padding: 0 8px; font-size: 17px; font-weight: 600; }
[data-bandeau="b"] .trust .pillars li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 2px solid var(--blue); box-shadow: 0 0 0 5px #fff; position: relative; z-index: 1; flex-shrink: 0;
  box-sizing: border-box; transition: background .4s ease; transition-delay: calc(var(--n, 0) * .38s + .1s); }
html.mo-ready[data-bandeau="b"] .trust .pillars:not(.mo-path-in) li::before { background: #fff; }
[data-bandeau="b"] .pillars li:nth-child(2) { --n: 1; } [data-bandeau="b"] .pillars li:nth-child(3) { --n: 2; }
[data-bandeau="b"] .pillars li:nth-child(4) { --n: 3; } [data-bandeau="b"] .pillars li:nth-child(5) { --n: 4; }
@media (max-width: 900px) { /* the path turns vertical */
  [data-bandeau="b"] .trust .pillars { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; padding: 8px 0; }
  [data-bandeau="b"] .trust .pillars::before, [data-bandeau="b"] .trust .pillars::after { left: 6px; right: auto; width: 2px; height: auto; top: 30px; bottom: 30px; }
  [data-bandeau="b"] .trust .pillars::after { transform-origin: top; }
  html.mo-ready[data-bandeau="b"] .trust .pillars::after { transform: scaleY(0); }
  [data-bandeau="b"] .trust .pillars li { flex-direction: row; justify-content: flex-start; padding: 12px 0; gap: 18px; }
}

/* C : Bandeau marine (dark band, white words, bare line icons) */
[data-bandeau="c"] .trust .pillars { background: var(--navy); border: 0; border-radius: 14px; padding: 24px 14px; }
[data-bandeau="c"] .trust .pillars li { color: #fff; font-weight: 600; border-right: 1px solid rgba(255,255,255,.14); transition: color .25s ease; }
[data-bandeau="c"] .trust .pillars li:last-child { border-right: 0; }
[data-bandeau="c"] .trust .pillars li:hover { color: #9cc2ff; }
[data-bandeau="c"] .pill-ico { width: auto; height: auto; background: none; border-radius: 0; }
[data-bandeau="c"] .pill-ico svg { width: 24px; height: 24px; stroke: #7fb0ff; stroke-width: 1.6; }
@media (max-width: 900px) {
  [data-bandeau="c"] .trust .pillars li { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 14px 12px; }
  [data-bandeau="c"] .trust .pillars li:last-child { border-bottom: 0; }
}

.mo-switch--bandeau { bottom: 64px; }
.mo-switch--bandeau span { color: #8fa3cf; padding: 8px 6px 8px 12px; }

/* ---------- version switcher (preview only, remove before going live) ---------- */
.mo-switch { position: fixed; left: 14px; bottom: 14px; z-index: 70; display: flex; gap: 4px; padding: 5px;
  background: rgba(10, 25, 60, .88); border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45);
  font: 600 12.5px/1 var(--font, system-ui); backdrop-filter: blur(8px); }
.mo-switch a { color: #c9d6f5; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.mo-switch a:hover { color: #fff; }
.mo-switch a[aria-current] { background: #0b5cff; color: #fff; }
@media (max-width: 420px) { .mo-switch { left: 8px; bottom: 8px; } .mo-switch a { padding: 8px 9px; } }

@media (prefers-reduced-motion: reduce) {
  .mo-marquee .logos { animation: none; }
  .mo-progress { display: none; }
}

/* comparison switchers: on a phone keep only the number / letter */
.mo-switch em { font-style: normal; }
@media (max-width: 560px) { .mo-switch em { display: none; } .mo-switch a { padding: 8px 11px; } }
