/*
 * Ajouts du relift, hors de landing.css.
 */

/* Haut de page avec le ∞ animé en fond : plus d'air autour du titre, ni petit logo ni grille de points. */
.hero.has-backdrop { overflow: hidden; padding-top: calc(var(--header-h) + 120px); padding-bottom: 136px; }
.hero.has-backdrop::before { display: none; }
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
.hero-backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-backdrop svg { position: absolute; width: 0; height: 0; }
@media (max-width: 640px) {
  .hero.has-backdrop { padding-top: calc(var(--header-h) + 88px); padding-bottom: 96px; }
}

/* Moments d'usage : pas de cadre, beaucoup d'air, le texte d'un côté et sa scène de l'autre, en alternance. */
.journey { display: grid; gap: clamp(88px, 11vw, 152px); margin-top: clamp(56px, 8vw, 96px); }
.step { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; }
  .step:nth-child(even) .step-scene { order: -1; }
}
.step-mark { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.step-cells { display: inline-flex; align-items: center; gap: 3px; margin-right: 4px; }
.step-cells i { width: 9px; height: 9px; border-radius: 3px; background: var(--border); }
.step-cells .is-done { background: var(--border-strong); }
.step-cells .is-on { display: inline-grid; place-items: center; width: 24px; height: 20px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); font-style: normal; font-size: 11px; font-weight: 600; line-height: 1; color: var(--text-on-accent); }
.step h3 { margin-top: 20px; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.step-text > p:not(.step-mark) { margin-top: 16px; max-width: 44ch; font-size: 17px; color: var(--text-secondary); text-wrap: pretty; }
.step-points { display: grid; gap: 8px; margin-top: 24px; font-size: 14.5px; color: var(--text-secondary); }
.step-points li { display: flex; align-items: baseline; gap: 10px; }
.step-points li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); transform: translateY(-2px); }
.journey-loop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: clamp(88px, 11vw, 152px); font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -0.015em; text-align: center; }
.journey-loop .logo { width: 48px; height: 32px; }
.journey-loop .logo rect { fill: var(--accent); }

/* Fin de page : le texte, et juste à côté le robot au chapeau qui parle dans sa bulle : une seule scène, lue d'un coup. */
.cta-duo { display: grid; gap: 8px; align-items: center; padding: 48px 28px; text-align: left; }
.cta-duo h2 { margin: 0; max-width: 24ch; text-wrap: balance; }
@media (min-width: 860px) { .cta-duo { grid-template-columns: max-content max-content; justify-content: start; gap: clamp(56px, 7vw, 120px); padding: 64px 64px 56px; } }
.cta-robot { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 32px; }
@media (min-width: 860px) { .cta-robot { margin-top: 0; } }
/* Bulle du robot (RobotSay de l'app) : claire sur fond sombre et l'inverse, pointe au milieu, sous la bulle. */
.cta-card .cta-say {
  position: relative;
  z-index: 1;
  max-width: 19rem;
  margin: 0;
  padding: 14px 20px;
  border-radius: 1.375rem;
  background: var(--text-primary);
  color: var(--bg-canvas);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.6);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  translate: 0 10px;
  scale: .94;
  transform-origin: 50% 100%;
  transition: opacity 420ms var(--ease) 500ms, translate 420ms var(--ease) 500ms, scale 420ms var(--ease) 500ms;
}
.cta-card .cta-say::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 3px; background: inherit; rotate: 45deg; }
.cta-duo.is-seen .cta-say { opacity: 1; translate: 0 0; scale: 1; }
/* Pendant un saut, la bulle s'efface vite ; elle revient ensuite avec son délai habituel. */
.cta-duo.is-seen.is-hopping .cta-say { opacity: 0; translate: 0 6px; scale: .92; transition-duration: 160ms; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .cta-card .cta-say { opacity: 1; translate: 0 0; scale: 1; transition: none; } }
/* La place du chapeau au-dessus de la tête est comprise dans la scène. */
.cta-stage { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; width: clamp(150px, 17vw, 196px); aspect-ratio: 1; margin-top: clamp(30px, 3.4vw, 42px); }
/* Ombre douce sous la tête : le robot se pose sur la page. */
.cta-stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 4%; height: 14px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / 0.55), transparent); scale: calc(1 - var(--hop, 0) * .45); opacity: calc(1 - var(--hop, 0) * .55); }
:root[data-theme="light"] .cta-stage::after { background: radial-gradient(closest-side, rgb(0 0 0 / 0.16), transparent); }
.cta-bot { display: block; width: 100%; height: 100%; }
.cta-bot svg { overflow: visible; }
.cta-bot .robot-shell { filter: none; }
/* Le chapeau prend le vert d'Infinity (filtre hat-tint de finale.js) : il se détache de la coque cuivrée. */
/* Fin de page sans cadre : le texte et le robot posés sur la page. */
.cta-card.cta-duo { border: 0; background: none; box-shadow: none; padding-inline: 0; }
.cta-card.cta-duo::before { display: none; }

/* Pied de page sans longue barre : la fin de page n'a plus de cadre, le trait sous « infinity / Made by bebold » suffit. */
.site-footer { border-top: 0; }

/* Contenu statique complet (tools/seo.mjs) : pour les robots et sans JavaScript seulement ; avec JavaScript, la vraie page le remplace. */
.js [data-static-more] { display: none; }
[data-static-more] { margin-top: 40px; max-width: 70ch; }
[data-static-more] h2 { margin-top: 40px; font-size: 24px; }
[data-static-more] h3 { margin-top: 20px; font-size: 18px; }
[data-static-more] p, [data-static-more] ul { margin-top: 8px; color: var(--text-secondary); }
[data-static-more] ul { padding-left: 1.2em; list-style: disc; }

/* Sous les points d'un moment : un partenaire (l'IA suisse chez Infomaniak), avec son logo. */
.step-partner { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.step-partner span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: -.01em; color: var(--text-primary); }
.step-partner svg { width: 16px; height: 16px; color: #0098ff; }

/* Sous les points d'un moment : les technologies livrées, en pastilles avec leur logo (même dessin que les outils du MCP). */
.ct-tools.step-stacks { margin: 22px 0 0; }

/* Pied de page en une ligne ; les textes légaux complets s'ouvrent dans une fenêtre, comme la liste d'attente. */
.footer-legal { padding-bottom: 28px; }
.footer-legal .legal-copy { margin-top: 0; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover { color: var(--text-primary); }
.legal-modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; }
.legal-modal .legal-grid { margin-top: 20px; padding-top: 20px; }
