@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

/* Chatflix landing — Pastel Aurora design system
   Tokens, typography, glass surfaces, animation primitives */

:root {
  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --font-display-serif: 'Instrument Serif', Georgia, 'Times New Roman', Times, serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Surfaces */
  --bg: #FAFAFB;
  --surface: #FFFFFF;
  --ink: #0A0A0F;
  --ink-2: #3A3A45;
  --ink-3: #8A8A95;
  --ink-4: #C5C5CC;
  --hairline: rgba(10, 10, 15, 0.06);
  --hairline-strong: rgba(10, 10, 15, 0.1);

  /* Accent — single bold blue for action */
  --accent: #2563EB;
  --accent-hover: #1E5BFF;
  --accent-soft: rgba(37, 99, 235, 0.08);

  /* Brand gradient — used sparingly */
  --brand-1: #FF8A4C;
  --brand-2: #FF4D8D;
  --brand-3: #C44CFF;
  --brand-4: #4C7DFF;
  --brand-grad: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 33%, var(--brand-3) 66%, var(--brand-4) 100%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px rgba(99, 102, 241, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --glass-shadow-hover: 0 16px 48px rgba(99, 102, 241, 0.14), 0 2px 4px rgba(0, 0, 0, 0.05);
  /* Barre pilule nav + halo derrière la vidéo hero — même verre gris */
  --nav-pill-bg: rgba(224, 224, 232, 0.78);
  --nav-pill-backdrop: blur(26px) saturate(1.18);
  /* Bulle hero : gris plus soutenu que la pilule nav */
  --hero-video-halo-bg: rgba(198, 198, 206, 0.58);
  /* §03 Modalités — cartes Chat / Image / … */
  --modalities-card-shadow:
    0 14px 46px rgba(99, 102, 241, 0.16),
    0 26px 62px rgba(15, 23, 42, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.07);
  --modalities-card-shadow-hover:
    0 18px 56px rgba(99, 102, 241, 0.18),
    0 30px 72px rgba(15, 23, 42, 0.11),
    0 4px 14px rgba(0, 0, 0, 0.065);
  /* Surface interne §03 (mock dans la carte) — plus de relief */
  --modalities-mock-surface-shadow:
    0 12px 36px rgba(15, 23, 42, 0.11),
    0 6px 18px rgba(15, 23, 42, 0.07),
    0 2px 6px rgba(0, 0, 0, 0.052);
  /* Fenêtre §02 Routing & vidéo hero — halo centré, doux */
  --window-soft-shadow:
    0 0 14px rgba(0, 0, 0, 0.045),
    0 0 36px rgba(15, 23, 42, 0.065),
    0 0 52px rgba(79, 70, 229, 0.065);
  /* Même famille que `--window-soft-shadow`, un peu plus marquée (vidéo hero) */
  --hero-video-shadow:
    0 0 18px rgba(0, 0, 0, 0.052),
    0 0 42px rgba(15, 23, 42, 0.076),
    0 0 64px rgba(79, 70, 229, 0.078);
  /* §02 Routing demo — panneaux & puces */
  --routing-demo-tab-shadow:
    0 4px 14px rgba(15, 23, 42, 0.072),
    0 2px 6px rgba(0, 0, 0, 0.038);
  --routing-demo-route-pill-shadow:
    0 9px 28px rgba(37, 99, 235, 0.14),
    0 4px 14px rgba(15, 23, 42, 0.08),
    0 2px 5px rgba(0, 0, 0, 0.045);
  --routing-demo-chip-shadow:
    0 5px 14px rgba(15, 23, 42, 0.078),
    0 2px 6px rgba(0, 0, 0, 0.04);

  /* Aurora intensity (live-tweakable) */
  --aurora-opacity: 0.7;

  /* Type scale (live-tweakable) */
  --scale: 1;

}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  position: relative;
  min-height: 100vh;
}

main#root {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
}

/* ─── Grille de points (cotés gauche / droit ; milieu vide) + traînée canvas ─ */
.dot-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.dot-grid-bg__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at center,
    rgba(58, 58, 69, 0.38) 0,
    rgba(58, 58, 69, 0.38) 1.35px,
    transparent 1.36px
  );
  background-size: 22px 22px;
  background-position: 0 0;
  /* Points visibles surtout à gauche et à droite ; milieu horizontal laissé au fond */
  -webkit-mask-image: linear-gradient(
    to right,
    #000000 0px,
    #000000 30px,
    rgba(0, 0, 0, 0.78) 200px,
    rgba(0, 0, 0, 0.2) 270px,
    transparent 340px,
    transparent calc(100% - 340px),
    rgba(0, 0, 0, 0.2) calc(100% - 270px),
    rgba(0, 0, 0, 0.78) calc(100% - 200px),
    #000000 calc(100% - 30px),
    #000000 100%
  );
  mask-image: linear-gradient(
    to right,
    #000000 0px,
    #000000 30px,
    rgba(0, 0, 0, 0.78) 200px,
    rgba(0, 0, 0, 0.2) 270px,
    transparent 340px,
    transparent calc(100% - 340px),
    rgba(0, 0, 0, 0.2) calc(100% - 270px),
    rgba(0, 0, 0, 0.78) calc(100% - 200px),
    #000000 calc(100% - 30px),
    #000000 100%
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}
.dot-grid-bg__trail {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .dot-grid-bg__trail {
    display: none;
  }
}

/* ─── Aurora background — fixed, very slow drift ─────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: #FBFAF8;
}
.aurora::before,
.aurora::after,
.aurora .blob-c {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--aurora-opacity);
  will-change: transform;
}
.aurora::before {
  width: 70vw; height: 70vw;
  top: -25vw; left: -15vw;
  background: radial-gradient(circle, #FFB088 0%, #FFB088 30%, transparent 70%);
  animation: drift1 28s ease-in-out infinite alternate;
}
.aurora::after {
  width: 60vw; height: 60vw;
  bottom: -20vw; right: -10vw;
  background: radial-gradient(circle, #A8B8FF 0%, #A8B8FF 35%, transparent 70%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora .blob-c {
  width: 55vw; height: 55vw;
  top: 30%; left: 30%;
  background: radial-gradient(circle, #E8B4E8 0%, #E8B4E8 30%, transparent 70%);
  animation: drift3 36s ease-in-out infinite alternate;
  opacity: calc(var(--aurora-opacity) * 0.85);
}
@keyframes drift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vw) scale(1.1); }
}
@keyframes drift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, -8vw) scale(1.15); }
}
@keyframes drift3 {
  0% { transform: translate(-3vw, -2vw) scale(1); }
  100% { transform: translate(4vw, 5vw) scale(0.9); }
}

/* ─── Typography ────────────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }
.display {
  font-size: clamp(
    calc(58px * var(--scale)),
    calc((52px + 1.15vw) * var(--scale)),
    calc(74px * var(--scale))
  );
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-headline {
  width: min(100%, 1320px);
  max-width: calc(100vw - 96px);
  font-size: clamp(
    calc(52px * var(--scale)),
    calc((38px + 1.8vw) * var(--scale)),
    calc(70px * var(--scale))
  );
  line-height: 1.04;
}

/* Titre : texte “noir” — noir en bas, légèrement grisé vers le haut */
.display-ink {
  background: linear-gradient(to top, #0a0a0f 0%, #121218 45%, #24242e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.h2 {
  font-size: calc(52px * var(--scale));
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
/* Routing §02 — forcer deux lignes (noir puis dégradé) sans « fois. » isolé */
.routing-demo-h2 .routing-demo-h2__grad {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
@media (min-width: 640px) {
  .routing-demo-h2 .routing-demo-h2__grad {
    white-space: nowrap;
  }
}
.lede.routing-demo-lede,
.lede.modalities-lede {
  color: var(--ink-3);
  max-width: 520px;
  font-size: 17px;
}
.h3 {
  font-size: calc(28px * var(--scale));
  font-weight: 600;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
}

/* ─── Layout ────────────────────────────────────────────────────────── */
.section {
  padding: 140px 32px;
  position: relative;
  /* Ancres nav — barre pilule fixe (~top 24px + ~56px de hauteur) */
  scroll-margin-top: 96px;
}
/* Première section sous le hero — moins d’air au-dessus du titre */
.section-after-hero {
  padding-top: 44px;
}
/* §02 Routing — décalage vertical sous le hero (+100px) */
.routing-demo-section.section-after-hero {
  padding-top: calc(44px + 100px);
}
#section-modeles.section {
  padding-top: 47px;
}
#section-memoire.section {
  padding-top: 3px;
}
#section-comparatif.section {
  padding-top: 3px;
}
#section-tarifs.section {
  padding-top: 3px;
}
#section-faq.section {
  padding-top: 3px;
}
.section-tight { padding: 96px 32px; }
.container { max-width: 1240px; margin: 0 auto; }
.container-narrow { max-width: 960px; margin: 0 auto; }

/* ─── Glass surface ─────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 40px;
}
.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 40px;
}

/* Fenêtre entière §02 Routing — ombre sur la carte, pas sur le Composer */
.glass.routing-demo-window {
  position: relative;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--window-soft-shadow);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  /* Hauteur calée sur le contenu réel (réponse 4 lignes + composer + routing) — évite le vide sous la carte */
  height: clamp(404px, 49vh, 472px);
  min-height: clamp(404px, 49vh, 472px);
  max-height: clamp(404px, 49vh, 472px);
  overflow: hidden;
  contain: layout style;
  isolation: isolate;
}
.glass.routing-demo-window::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.12), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.1), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.12), transparent 44%);
}
.glass.routing-demo-window > * {
  position: relative;
  z-index: 1;
}
/* Démo routing : visible + animation seulement après scroll dans le viewport */
.glass.routing-demo-window.routing-demo-window--await-scroll {
  opacity: 0;
  transform: translateY(48px) scale(0.92);
  pointer-events: none;
  will-change: opacity, transform;
}
.glass.routing-demo-window.routing-demo-window--revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  will-change: auto;
  transition:
    opacity 1.12s cubic-bezier(0.14, 1, 0.34, 1),
    transform 1.26s cubic-bezier(0.33, 1.58, 0.52, 1),
    box-shadow 1.05s ease;
}
.glass.routing-demo-window.routing-demo-window--revealed .routing-demo-tab {
  animation: routing-demo-tab-rise 0.78s cubic-bezier(0.34, 1.5, 0.42, 1) backwards;
}
.glass.routing-demo-window.routing-demo-window--revealed .routing-demo-tab:nth-child(1) { animation-delay: 0.16s; }
.glass.routing-demo-window.routing-demo-window--revealed .routing-demo-tab:nth-child(2) { animation-delay: 0.26s; }
.glass.routing-demo-window.routing-demo-window--revealed .routing-demo-tab:nth-child(3) { animation-delay: 0.36s; }
.glass.routing-demo-window.routing-demo-window--revealed .routing-demo-tab:nth-child(4) { animation-delay: 0.46s; }
@keyframes routing-demo-tab-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.routing-demo-window-fill {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}
.routing-demo-composer-hold {
  flex-shrink: 0;
}
.routing-demo-lower {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
  justify-content: flex-start;
}
/* Réponse visible : la colonne prend la place sous le composer et colle la boîte réponse au bas */
.routing-demo-lower--reply-active {
  flex: 1 1 auto;
}
.routing-demo-reply-shell {
  flex: 0 0 auto;
  display: block;
  margin-top: 0;
}
.routing-demo-lower--locked .routing-demo-reply-shell {
  margin-top: 6px;
}
.routing-demo-lower--reply-active > .routing-demo-reply-shell {
  margin-top: auto;
  margin-bottom: 8px;
}
.routing-demo-tabs {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.routing-demo-slot-clip {
  flex: 0 0 auto;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  flex-shrink: 0;
  /* Pilule puis raison en dessous ; plancher pour 2 rangées de candidats */
  font-size: 13px;
  line-height: 1.35;
  height: max(5.5rem, calc(2lh + 2.85rem));
}
.routing-demo-route-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  box-sizing: border-box;
}
.routing-demo-route-row .routing-demo-pill {
  flex-shrink: 0;
}
.routing-demo-tab {
  border: 1px solid rgba(10, 10, 15, 0.1);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--routing-demo-tab-shadow);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.routing-demo-tab:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(10, 10, 15, 0.14);
  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.09),
    0 3px 8px rgba(0, 0, 0, 0.048);
}
.routing-demo-tab--active {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.14),
    0 6px 20px rgba(37, 99, 235, 0.14),
    0 3px 10px rgba(15, 23, 42, 0.07);
}

.auto-badge {
  box-shadow:
    0 5px 16px rgba(37, 99, 235, 0.13),
    0 2px 8px rgba(15, 23, 42, 0.055);
}

.routing-demo-composer-hold .composer-ghost-btn {
  box-shadow:
    0 3px 10px rgba(15, 23, 42, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.035);
}
.routing-demo-composer-hold .composer-send-btn {
  box-shadow:
    0 8px 22px rgba(37, 99, 235, 0.42),
    0 4px 12px rgba(37, 99, 235, 0.28),
    0 2px 6px rgba(15, 23, 42, 0.08);
}

.routing-demo-slot {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 4px;
}
.routing-demo-candidates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.routing-demo-cand {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 15, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.12s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.12s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.08s ease,
    background 0.08s ease,
    box-shadow 0.08s ease;
}
.routing-demo-cand--in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.routing-demo-cand.routing-demo-cand--in:not(.routing-demo-cand--win):not(.routing-demo-cand--out) {
  box-shadow: var(--routing-demo-chip-shadow);
}
.routing-demo-cand--out {
  opacity: 0.1;
  transform: translateY(16px) scale(0.84);
  filter: grayscale(0.65) blur(0.6px);
  transition:
    opacity 0.42s cubic-bezier(0.55, 0.06, 0.68, 0.19),
    transform 0.48s cubic-bezier(0.55, 0.06, 0.68, 0.19),
    filter 0.4s ease;
}
.routing-demo-cand--win {
  position: relative;
  z-index: 3;
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(196, 76, 255, 0.1));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(37, 99, 235, 0.22),
    0 14px 40px -10px rgba(37, 99, 235, 0.38),
    0 0 48px -12px rgba(196, 76, 255, 0.22);
}
.routing-demo-cand--win-glory {
  animation: routingWinnerGlory 1.58s cubic-bezier(0.34, 1.45, 0.36, 1) both;
  transition: none;
}
.routing-demo-cand--win-glory::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(196, 76, 255, 0.08) 42%, transparent 70%);
  opacity: 0;
  animation: routingWinHalo 1.42s ease-out 0.06s both;
}
.routing-demo-cand--win-glory::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  border: 2px solid rgba(76, 125, 255, 0.45);
  opacity: 0;
  animation: routingWinRing 1.28s ease-out 0.1s both;
}
.routing-demo-cand--win-glory > * {
  position: relative;
  z-index: 1;
}
@keyframes routingWinnerGlory {
  0% {
    transform: scale(1) translateY(0);
    filter: brightness(1);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.9),
      0 0 0 4px rgba(37, 99, 235, 0.22),
      0 14px 40px -10px rgba(37, 99, 235, 0.38),
      0 0 48px -12px rgba(196, 76, 255, 0.22);
  }
  14% {
    transform: scale(1.06) translateY(-3px) rotate(-1.2deg);
    filter: brightness(1.06);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.95),
      0 0 0 5px rgba(37, 99, 235, 0.28),
      0 18px 48px -8px rgba(37, 99, 235, 0.45),
      0 0 64px -8px rgba(196, 76, 255, 0.28);
  }
  32% {
    transform: scale(1.14) translateY(-6px) rotate(0.8deg);
    filter: brightness(1.12);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.95),
      0 0 0 6px rgba(37, 99, 235, 0.32),
      0 22px 56px -6px rgba(37, 99, 235, 0.5),
      0 0 72px -6px rgba(196, 76, 255, 0.32);
  }
  52% {
    transform: scale(1.1) translateY(-4px) rotate(-0.5deg);
    filter: brightness(1.08);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.92),
      0 0 0 5px rgba(37, 99, 235, 0.26),
      0 16px 44px -10px rgba(37, 99, 235, 0.4),
      0 0 56px -10px rgba(196, 76, 255, 0.24);
  }
  72% {
    transform: scale(1.18) translateY(-8px) rotate(0.4deg);
    filter: brightness(1.14);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.95),
      0 0 0 7px rgba(37, 99, 235, 0.34),
      0 24px 60px -4px rgba(37, 99, 235, 0.52),
      0 0 80px -4px rgba(196, 76, 255, 0.34);
  }
  88% {
    transform: scale(1.12) translateY(-5px);
    filter: brightness(1.09);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.93),
      0 0 0 5px rgba(37, 99, 235, 0.28),
      0 18px 46px -8px rgba(37, 99, 235, 0.42),
      0 0 60px -8px rgba(196, 76, 255, 0.26);
  }
  100% {
    transform: scale(1.08) translateY(-4px);
    filter: brightness(1.08);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.9),
      0 0 0 4px rgba(37, 99, 235, 0.24),
      0 16px 42px -10px rgba(37, 99, 235, 0.4),
      0 0 52px -10px rgba(196, 76, 255, 0.22);
  }
}
@keyframes routingWinHalo {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}
@keyframes routingWinRing {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.95);
  }
}
.routing-demo-cand-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  flex-shrink: 0;
}
.routing-demo-cand-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  overflow: hidden;
}
.routing-demo-cand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.routing-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.14s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.routing-demo-pill--show {
  opacity: 1;
  transform: translateY(0);
  box-shadow: var(--routing-demo-route-pill-shadow);
}
.routing-demo-pill--snap {
  animation: routingPillSnap 0.78s cubic-bezier(0.34, 1.72, 0.36, 1) both;
  transition: none;
}
@keyframes routingPillSnap {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.78);
    filter: blur(5px);
  }
  48% {
    opacity: 1;
    transform: translateY(-5px) scale(1.07);
    filter: blur(0);
  }
  72% {
    transform: translateY(2px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.routing-demo-pill-model {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.routing-demo-pill-model__icon {
  flex-shrink: 0;
  border-radius: 5px;
  object-fit: contain;
}
.routing-demo-reason {
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.35;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(26rem, 92%);
}
.routing-demo-reply {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  padding: 10px 14px;
  /* Aligné sur le Composer (question) : borderRadius 32 dans chatflix-ui.jsx */
  border-radius: 32px;
  background: rgba(250, 250, 251, 0.95);
  border: 1px solid rgba(10, 10, 15, 0.06);
  text-align: left;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.015em;
  /* 4 lignes visibles + padding ; le reste défile */
  height: calc(4lh + 20px);
  min-height: calc(4lh + 20px);
  max-height: calc(4lh + 20px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.routing-demo-reply .caret {
  display: inline-block;
  width: 2px;
  height: 16px;
  margin-left: 2px;
  vertical-align: middle;
  background: #2563eb;
  animation: caret 1s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .routing-demo-cand {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .routing-demo-cand--out {
    transition: none;
    display: none;
  }
  .routing-demo-pill {
    transition: none;
  }
  .routing-demo-cand--win-glory,
  .routing-demo-cand--win-glory::before,
  .routing-demo-cand--win-glory::after {
    animation: none !important;
  }
  .routing-demo-pill--snap {
    animation: none !important;
  }
}

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: default;
  border: none;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease, background 200ms ease;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.025);
  box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:active { transform: scale(0.97); }

/* Hero CTA — dégradé + lueur couleur ; survol = effet « bouton enfoncé » (sans rebond) */
.btn.btn-hero-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  background: var(--brand-grad);
  color: #fff;
  height: 42px;
  min-height: 42px;
  padding: 0 17px 0 19px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: -0.01em;
  gap: 6px;
  /* Lueur colorée + halos verticaux haut/bas (orange ↑, bleu ↓) — repère fort */
  box-shadow:
    0 -6px 22px rgba(255, 138, 76, 0.22),
    0 7px 24px rgba(76, 125, 255, 0.18),
    0 -3px 18px rgba(255, 77, 141, 0.12),
    0 4px 18px rgba(196, 76, 255, 0.14),
    0 4px 12px rgba(255, 138, 76, 0.12),
    0 5px 14px rgba(255, 77, 141, 0.08),
    0 4px 14px rgba(76, 125, 255, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07);
  transition:
    transform 0.18s cubic-bezier(0.33, 1, 0.52, 1),
    filter 0.18s ease,
    box-shadow 0.3s ease;
}
.btn.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    transparent 52%
  );
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.28s ease;
}
/* Reflet + petits brillants (très discrets) — visibles au survol */
.btn.btn-hero-primary:hover::before {
  background:
    radial-gradient(circle 1.5px at 11% 38%, rgba(255, 255, 255, 0.55), transparent 72%),
    radial-gradient(circle 1px at 77% 54%, rgba(255, 255, 255, 0.38), transparent 70%),
    radial-gradient(circle 1px at 43% 62%, rgba(255, 255, 255, 0.32), transparent 70%),
    radial-gradient(circle 1.5px at 89% 36%, rgba(255, 255, 255, 0.28), transparent 72%),
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.48) 0%,
      rgba(255, 255, 255, 0.12) 38%,
      transparent 52%
    );
  opacity: 0.62;
}
/* Balayage lumineux léger au survol */
.btn.btn-hero-primary::after {
  content: '';
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -20%;
  width: 48%;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 40%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.09) 60%,
    transparent 100%
  );
  transform: translateX(-125%) skewX(-14deg);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s ease;
}
.btn.btn-hero-primary:hover::after {
  opacity: 1;
  animation: btnHeroShine 1.25s cubic-bezier(0.33, 1, 0.48, 1) forwards;
}
@keyframes btnHeroShine {
  from { transform: translateX(-125%) skewX(-14deg); }
  to { transform: translateX(260%) skewX(-14deg); }
}
.btn.btn-hero-primary .btn-hero-primary__label,
.btn.btn-hero-primary .btn-hero-primary__icon {
  position: relative;
  z-index: 2;
}
.btn.btn-hero-primary .btn-hero-primary__icon {
  flex-shrink: 0;
}
.btn.btn-hero-primary:hover {
  transform: translateY(3px) scale(0.985);
  filter: brightness(0.97);
  /* Même profil que le repos, ~+10 % sur flous / opacités (léger renfort seulement) */
  box-shadow:
    0 -6px 24px rgba(255, 138, 76, 0.24),
    0 7px 26px rgba(76, 125, 255, 0.20),
    0 -3px 20px rgba(255, 77, 141, 0.13),
    0 4px 20px rgba(196, 76, 255, 0.15),
    0 4px 13px rgba(255, 138, 76, 0.13),
    0 5px 15px rgba(255, 77, 141, 0.09),
    0 4px 15px rgba(76, 125, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.btn.btn-hero-primary:active {
  transform: translateY(5px) scale(0.975);
  filter: brightness(0.94);
  box-shadow:
    0 -4px 16px rgba(255, 138, 76, 0.16),
    0 5px 18px rgba(76, 125, 255, 0.14),
    0 5px 16px rgba(255, 138, 76, 0.18),
    0 6px 20px rgba(255, 77, 141, 0.13),
    0 6px 22px rgba(196, 76, 255, 0.15),
    0 5px 18px rgba(76, 125, 255, 0.12),
    inset 0 3px 10px rgba(70, 35, 110, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn.btn-hero-primary:focus-visible {
  outline: 2px solid rgba(196, 76, 255, 0.85);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .btn.btn-hero-primary:hover,
  .btn.btn-hero-primary:active {
    transform: none;
  }
  .btn.btn-hero-primary::after {
    display: none;
  }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  height: auto;
  padding: 0;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--accent); transform: none; }
.btn-ghost .arrow { transition: transform 220ms ease; }
.btn-ghost:hover .arrow { transform: translateY(2px); }

/* Secondaire hero — texte dans une bulle (pilule) */
.btn.btn-ghost.btn-ghost-bubble {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  color: #0A0A0F;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition:
    color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}
.btn.btn-ghost.btn-ghost-bubble::before {
  display: none;
}
.btn.btn-ghost.btn-ghost-bubble > * {
  position: relative;
  z-index: 1;
}
.btn.btn-ghost.btn-ghost-bubble:hover {
  color: #0A0A0F;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* Hero — ligne Trustpilot sous les CTA (sans fond ni contour) */
.hero-trust-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 5px;
  padding: 6px 0;
  border-radius: 999px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transform: translateY(10px);
  transition: transform 180ms ease, opacity 180ms ease;
}
.hero-trust-row:hover {
  opacity: 0.92;
  transform: translateY(8px);
}
.hero-trust-row:focus-visible {
  outline: 2px solid rgba(0, 182, 122, 0.45);
  outline-offset: 6px;
}
.hero-trust-row__avatars {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  margin-right: 10px;
}
.hero-trust-row__avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  overflow: visible;
  flex-shrink: 0;
  box-sizing: border-box;
  margin-left: -15px;
  box-shadow:
    0 0 0 1px rgba(10, 10, 15, 0.07),
    0 3px 8px rgba(10, 10, 15, 0.1),
    0 10px 22px rgba(10, 10, 15, 0.12);
}
.hero-trust-row__avatar:first-child {
  margin-left: 0;
}
.hero-trust-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.hero-trust-row__score {
  font-weight: 800;
  font-size: 23px;
  color: #00b67a;
  letter-spacing: -0.03em;
  line-height: 1;
  transform: translateY(1px);
}
.hero-trust-row__mid {
  color: var(--ink-3);
  font-weight: 500;
}
.hero-trust-row__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}
.hero-trust-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transform: translateY(1px);
}
.hero-trust-star-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  overflow: hidden;
  background: #00b67a;
  color: #fff;
  border-radius: 4px;
  flex-shrink: 0;
}
.hero-trust-star-box--partial {
  background: #d8d8e0;
}
.hero-trust-star-fill {
  position: absolute;
  inset: 0;
  background: #00b67a;
}
.hero-trust-star-box--partial .hero-trust-star-fill {
  width: 20%;
  right: auto;
}
.hero-trust-star {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-0.5px);
}
.hero-trust-row__tp-word {
  font-weight: 760;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-ai-ticker {
  width: min(960px, calc(100vw - 56px));
  margin-top: 68px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hero-ai-ticker__row {
  overflow: hidden;
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, -24px, 0) scale(0.985);
  transition:
    opacity 420ms cubic-bezier(.22, 1, .36, 1) var(--ticker-row-delay, 0ms),
    filter 460ms cubic-bezier(.22, 1, .36, 1) var(--ticker-row-delay, 0ms),
    transform 620ms cubic-bezier(.14, 1.55, .32, 1) var(--ticker-row-delay, 0ms);
}
.hero-ai-ticker--visible .hero-ai-ticker__row {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}
.hero-ai-ticker__row + .hero-ai-ticker__row {
  margin-top: 8px;
}
.hero-ai-ticker__track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: heroAiTickerScroll 42s linear infinite;
  will-change: transform;
}
.hero-ai-ticker__row--right .hero-ai-ticker__track {
  animation-name: heroAiTickerScrollRight;
}
.hero-ai-ticker__row--left .hero-ai-ticker__track {
  animation-name: heroAiTickerScrollLeft;
}
.hero-ai-ticker:hover .hero-ai-ticker__track {
  animation-play-state: paused;
}
.hero-ai-ticker__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(10, 10, 15, 0.36);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hero-ai-ticker__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(10, 10, 15, 0.42);
  font-size: 11px;
  font-weight: 800;
}
.hero-ai-ticker__icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  filter: grayscale(1) saturate(0.1);
  opacity: 0.44;
}

@keyframes heroAiTickerScrollLeft {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - 4px), 0, 0);
  }
}

@keyframes heroAiTickerScrollRight {
  from {
    transform: translate3d(calc(-50% - 4px), 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* ─── Page bêta privée ───────────────────────────────────────────────── */
.beta-access-page {
  --beta-access-entry-delay: 1.08s;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 104px 24px 72px;
  position: relative;
  box-sizing: border-box;
}
.beta-access-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 138, 76, 0.09), transparent 28%),
    radial-gradient(circle at 34% 42%, rgba(196, 76, 255, 0.09), transparent 26%),
    radial-gradient(circle at 68% 42%, rgba(76, 125, 255, 0.08), transparent 24%);
}
.beta-access-page__shell {
  position: relative;
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  z-index: 1;
}
.beta-access-page__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.beta-access-page__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 860px;
  font-size: clamp(40px, 4.9vw, 72px);
  line-height: 0.94;
}
.beta-access-page__title .display-ink {
  display: block;
}
.beta-access-page__copy {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-3);
  letter-spacing: -0.02em;
}
.beta-access-page__card {
  width: min(620px, 100%);
  margin-top: 12px;
  display: block;
  padding: 28px;
  border-radius: 44px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.12), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.1), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(1.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.14);
  border: 1px solid rgba(255, 255, 255, 0.82);
}
.beta-access-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.beta-access-form__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.beta-access-form__field {
  padding: 11px 13px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(10, 10, 15, 0.08);
  box-shadow:
    0 10px 32px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
}
.beta-access-form__field input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.beta-access-form__field input::placeholder {
  color: var(--ink-4);
}
.beta-access-code-grid {
  display: grid;
  width: min(420px, 100%);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.beta-access-code-grid--pin {
  width: min(290px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.beta-access-code-grid__input {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(10, 10, 15, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  outline: none;
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.beta-access-code-grid__input:focus {
  border-color: rgba(91, 122, 255, 0.42);
  box-shadow:
    0 16px 36px rgba(91, 122, 255, 0.14),
    0 0 0 4px rgba(91, 122, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}
.beta-access-text-field {
  width: min(420px, 100%);
  height: 62px;
  border: 1px solid rgba(10, 10, 15, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  outline: none;
  padding: 0 22px;
  text-align: center;
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.beta-access-text-field::placeholder {
  color: rgba(142, 142, 154, 0.58);
}
.beta-access-text-field:focus {
  border-color: rgba(91, 122, 255, 0.42);
  box-shadow:
    0 16px 36px rgba(91, 122, 255, 0.14),
    0 0 0 4px rgba(91, 122, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}
.beta-access-error {
  min-height: 18px;
  margin-top: -6px;
  color: #ef476f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.beta-access-form__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.beta-access-form__submit {
  height: 48px;
  min-height: 48px;
  padding: 0 18px 0 18px;
  background: linear-gradient(135deg, #FF8A4C 0%, #FF4D8D 33%, #C44CFF 66%, #4C7DFF 100%);
}
.beta-access-form__submit:disabled {
  opacity: 0.78;
  transform: none;
  cursor: not-allowed;
  filter: saturate(0.9) brightness(1.03);
}
.beta-access-form__submit:disabled:hover {
  transform: none;
}
.beta-access-form__back {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.beta-access-form__back:hover {
  color: var(--ink);
}
.beta-access-card__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  text-align: left;
  padding: 6px 4px 6px 10px;
}
.beta-access-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 10, 15, 0.06);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.beta-access-note {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}
.beta-access-success {
  width: min(420px, 100%);
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.12), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.1), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow:
    0 10px 32px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.14, 1.55, 0.32, 1);
}
.beta-access-success--visible {
  opacity: 1;
  transform: translateY(0);
}
.beta-access-success__title {
  font-weight: 800;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.02em;
}
.beta-access-success__text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
@media (prefers-reduced-motion: no-preference) {
  .beta-access-page__title .display-ink,
  .beta-access-page__title .display-brand-serif,
  .beta-access-page__copy,
  .beta-access-page__card {
    opacity: 0;
    transform: translate3d(0, -34px, 0) scale(0.985);
    animation: betaAccessRevealDown 0.86s cubic-bezier(0.14, 1.18, 0.28, 1) forwards;
  }
  .beta-access-page__title .display-ink {
    animation-delay: calc(var(--beta-access-entry-delay) + 0s);
  }
  .beta-access-page__title .display-brand-serif {
    animation-delay: calc(var(--beta-access-entry-delay) + 0.14s);
  }
  .beta-access-page__copy {
    animation-delay: calc(var(--beta-access-entry-delay) + 0.32s);
  }
  .beta-access-page__card {
    animation-name: betaAccessCardReveal;
    animation-delay: calc(var(--beta-access-entry-delay) + 0.52s);
  }
  .beta-access-form__label,
  .beta-access-code-grid__input,
  .beta-access-text-field,
  .beta-access-form__actions {
    opacity: 0;
    transform: translate3d(0, -18px, 0) scale(0.96);
    animation: betaAccessInnerPop 0.64s cubic-bezier(0.18, 1.35, 0.32, 1) forwards;
  }
  .beta-access-form__label {
    animation-delay: calc(var(--beta-access-entry-delay) + 0.76s);
  }
  .beta-access-code-grid__input:nth-child(1) { animation-delay: calc(var(--beta-access-entry-delay) + 0.9s); }
  .beta-access-code-grid__input:nth-child(2) { animation-delay: calc(var(--beta-access-entry-delay) + 0.96s); }
  .beta-access-code-grid__input:nth-child(3) { animation-delay: calc(var(--beta-access-entry-delay) + 1.02s); }
  .beta-access-code-grid__input:nth-child(4) { animation-delay: calc(var(--beta-access-entry-delay) + 1.08s); }
  .beta-access-code-grid__input:nth-child(5) { animation-delay: calc(var(--beta-access-entry-delay) + 1.14s); }
  .beta-access-code-grid__input:nth-child(6) { animation-delay: calc(var(--beta-access-entry-delay) + 1.2s); }
  .beta-access-text-field {
    animation-delay: calc(var(--beta-access-entry-delay) + 0.9s);
  }
  .beta-access-form__actions {
    animation-delay: calc(var(--beta-access-entry-delay) + 1.34s);
  }
}
@keyframes betaAccessRevealDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -34px, 0) scale(0.985);
    filter: blur(6px);
  }
  58% {
    opacity: 1;
    transform: translate3d(0, 5px, 0) scale(1.006);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}
@keyframes betaAccessCardReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, -28px, 0) scale(0.975);
    filter: blur(8px);
  }
  62% {
    opacity: 1;
    transform: translate3d(0, 6px, 0) scale(1.006);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}
@keyframes betaAccessInnerPop {
  0% {
    opacity: 0;
    transform: translate3d(0, -18px, 0) scale(0.96);
    filter: blur(4px);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, 3px, 0) scale(1.025);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}
@media (max-width: 920px) {
  .beta-access-page {
    padding-top: 104px;
  }
  .beta-access-page__title {
    font-size: clamp(36px, 8.2vw, 60px);
  }
}
@media (max-width: 640px) {
  .beta-access-page {
    padding: 96px 16px 62px;
  }
  .beta-access-page__copy {
    font-size: 16px;
  }
  .beta-access-page__card {
    padding: 18px;
    border-radius: 32px;
  }
  .beta-access-code-grid {
    gap: 7px;
  }
  .beta-access-code-grid__input {
    border-radius: 14px;
    font-size: 22px;
  }
  .beta-access-form__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .beta-access-form__back {
    text-align: center;
  }
}

.btn-glass {
  background: var(--glass-bg-strong);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.btn-glass:hover { transform: scale(1.025); background: rgba(255, 255, 255, 0.95); }

/* §07 Pricing — preuve de valeur intégrée aux cards */
.pricing-plan-card {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.12), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.1), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.84);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 620px;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transform-style: preserve-3d;
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.42s ease,
    filter 0.42s ease;
  will-change: transform, box-shadow;
  box-shadow:
    0 0 56px rgba(15, 23, 42, 0.07),
    0 0 34px rgba(99, 102, 241, 0.06),
    0 8px 24px rgba(10, 10, 15, 0.045);
}
.pricing-plan-card > * {
  position: relative;
  z-index: 1;
}
.pricing-plan-card:not(.pricing-plan-card--recommended)::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.12), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.1), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.12), transparent 44%);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.42s ease,
    transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-plan-card.lift:hover {
  transform: translateY(0) scale(1) !important;
  filter: saturate(1.04);
  box-shadow:
    0 26px 72px rgba(15, 23, 42, 0.13),
    0 16px 48px rgba(37, 99, 235, 0.12),
    0 6px 20px rgba(10, 10, 15, 0.06);
}
.pricing-plan-card:hover::before {
  opacity: 1;
  transform: scale(1);
}
.pricing-plan-card--recommended {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 3px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)) padding-box,
    linear-gradient(135deg, #FF8A4C 0%, #FF4D8D 24%, #C44CFF 50%, #4C7DFF 74%, #FF8A4C 100%) border-box !important;
  background-size: auto, 260% 260%;
  background-position: 0 0, 0% 50%;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 0 70px rgba(15, 23, 42, 0.08),
    0 0 0 8px rgba(196, 76, 255, 0.018),
    0 0 50px rgba(196, 76, 255, 0.11),
    0 0 38px rgba(76, 125, 255, 0.085),
    0 8px 24px rgba(10, 10, 15, 0.045);
  animation:
    pricingProFloat 4.8s ease-in-out infinite,
    pricingProBorderFlow 6.8s linear infinite;
}
.pricing-plan-card--recommended.lift:hover {
  transform: translateY(0) scale(1) !important;
  filter: saturate(1.1) brightness(1.01);
  box-shadow:
    0 34px 88px rgba(15, 23, 42, 0.14),
    0 0 0 8px rgba(196, 76, 255, 0.024),
    0 0 76px rgba(196, 76, 255, 0.19),
    0 0 58px rgba(76, 125, 255, 0.16),
    0 10px 28px rgba(10, 10, 15, 0.055);
}
.pricing-plan-card--recommended:hover {
  animation-play-state: paused;
}
.pricing-plan-card--recommended::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.12), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.1), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.12), transparent 44%);
  filter: none;
  opacity: 1;
  animation: none;
}
.pricing-plan-card--recommended::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 18px;
  right: 18px;
  height: 42%;
  border-radius: 32px;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.5) 30%, transparent 50%);
  transform: translateX(-125%);
  opacity: 0;
  animation: pricingCtaShine 2.9s ease-in-out infinite;
}
.pricing-popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  height: 32px;
  min-width: 188px;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  box-shadow:
    0 12px 28px rgba(196, 76, 255, 0.24),
    0 6px 18px rgba(76, 125, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  animation: pricingBadgePopOnEdge 2.4s ease-in-out infinite;
}
.pricing-popular-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.42) 28%, transparent 48%);
  transform: translateX(-130%);
  animation: pricingCtaShine 2.9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pricingProFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@keyframes pricingProGlow {
  0%, 100% { opacity: 0.07; filter: blur(20px); }
  50% { opacity: 0.12; filter: blur(26px); }
}
@keyframes pricingProBorderFlow {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 260% 50%; }
}
@keyframes pricingBadgePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes pricingBadgePopOnEdge {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  40% { transform: translateX(-50%) translateY(-2px) scale(1.052); }
  62% { transform: translateX(-50%) translateY(0) scale(0.992); }
}
.pricing-provider-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.04);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.075),
    0 2px 6px rgba(10, 10, 15, 0.04);
  translate: 0 0;
  transition:
    transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease,
    background 0.28s ease,
    filter 0.28s ease;
  transition-delay: calc(var(--provider-idx, 0) * 14ms);
  animation: pricingProviderBreathe 3.8s ease-in-out infinite;
  animation-delay: calc(var(--provider-idx, 0) * 86ms);
  will-change: transform, translate;
}
.pricing-provider-mark::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle, rgba(76, 125, 255, 0.18), transparent 62%);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.3s ease,
    transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pricing-provider-mark img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.pricing-plan-card:hover .pricing-provider-mark {
  transform: scale(1.16) rotate(var(--provider-tilt, -4deg));
  background: rgba(255, 255, 255, 0.78);
  filter: saturate(1.12) brightness(1.02);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.11),
    0 6px 16px rgba(76, 125, 255, 0.11);
}
.pricing-plan-card--recommended:hover .pricing-provider-mark {
  background:
    linear-gradient(135deg, rgba(255, 138, 76, 0.055), rgba(255, 77, 141, 0.045) 38%, rgba(196, 76, 255, 0.048) 68%, rgba(76, 125, 255, 0.04)),
    rgba(255, 252, 254, 0.78);
  box-shadow:
    0 10px 22px rgba(196, 76, 255, 0.055),
    0 5px 14px rgba(255, 77, 141, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}
.pricing-plan-card:hover .pricing-provider-mark:nth-child(even) {
  --provider-tilt: 4deg;
}
.pricing-plan-card:hover .pricing-provider-mark::after {
  opacity: 1;
  transform: scale(1);
}
.pricing-plan-card--recommended:hover .pricing-provider-mark::after {
  background: radial-gradient(circle, rgba(255, 77, 141, 0.055), rgba(196, 76, 255, 0.032) 42%, transparent 68%);
}
.pricing-card-value-note {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.045);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
}
.pricing-plan-card:hover .pricing-card-value-note {
  transform: translateY(-2px) scale(1.035);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}
.pricing-plan-card--recommended:hover .pricing-card-value-note {
  background:
    linear-gradient(135deg, rgba(255, 138, 76, 0.055), rgba(255, 77, 141, 0.045) 38%, rgba(196, 76, 255, 0.045) 70%, rgba(76, 125, 255, 0.038)),
    rgba(255, 252, 254, 0.8);
  color: var(--ink-2);
  box-shadow:
    0 12px 26px rgba(196, 76, 255, 0.055),
    0 6px 16px rgba(255, 77, 141, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
.pricing-price-row {
  flex-wrap: wrap;
}
.pricing-price-row span:first-child {
  display: inline-block;
  transform-origin: 0 70%;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    text-shadow 0.34s ease,
    filter 0.34s ease;
}
.pricing-plan-card:hover .pricing-price-row span:first-child {
  transform: translateY(-2px) scale(1.035);
  filter: saturate(1.04);
  text-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}
.pricing-plan-card--recommended:hover .pricing-price-row span:first-child {
  text-shadow:
    0 0 22px rgba(255, 77, 141, 0.16),
    0 12px 30px rgba(76, 125, 255, 0.12);
}
.pricing-card-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pricing-card-logo-row--compact {
  margin-top: 14px;
}
.pricing-card-logo-row--all {
  gap: 5px;
}
.pricing-card-logo-row--all .pricing-provider-mark {
  width: 24px;
  height: 24px;
  font-size: 9px;
}
.pricing-card-logo-row--all .pricing-provider-mark img {
  width: 15px;
  height: 15px;
}
.pricing-feature-list {
  flex: 1 1 auto;
}
.pricing-feature-item {
  translate: 0 0;
  transition:
    translate 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.26s ease,
    filter 0.26s ease;
  transition-delay: calc(var(--feature-idx, 0) * 12ms);
}
.pricing-plan-card:hover .pricing-feature-item {
  translate: 0 0;
  color: var(--ink);
  filter: saturate(1.02);
}
.pricing-check {
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.24s ease;
}
.pricing-plan-card:hover .pricing-check {
  transform: scale(1.18) rotate(-8deg);
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.18));
}
.pricing-plan-card .pricing-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  margin-top: auto !important;
  flex-shrink: 0;
  border-radius: 999px;
  background: #007AFF !important;
  color: #fff !important;
  border: 1px solid #007AFF !important;
  box-shadow:
    0 14px 30px rgba(0, 122, 255, 0.22),
    0 4px 12px rgba(0, 122, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.22s cubic-bezier(0.33, 1, 0.52, 1),
    box-shadow 0.32s ease,
    filter 0.26s ease,
    background 0.26s ease;
  animation: pricingBlueButtonBreath 3.6s ease-in-out infinite;
}
.pricing-plan-card .pricing-btn::after {
  content: '';
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -20%;
  width: 48%;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 40%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.09) 60%,
    transparent 100%
  );
  transform: translateX(-125%) skewX(-14deg);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s ease;
}
.pricing-plan-card .pricing-btn:hover {
  background: #006DE5 !important;
  transform: translateY(-2px) scale(1.018);
  animation-play-state: paused;
  box-shadow:
    0 20px 42px rgba(0, 122, 255, 0.32),
    0 8px 20px rgba(0, 122, 255, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.pricing-plan-card .pricing-btn:hover::after {
  opacity: 1;
  animation: btnHeroShine 1.25s cubic-bezier(0.33, 1, 0.48, 1) forwards;
}
.pricing-plan-card .pricing-btn--recommended {
  background: var(--brand-grad) !important;
  border-color: transparent !important;
  box-shadow:
    0 14px 30px rgba(196, 76, 255, 0.18),
    0 8px 20px rgba(76, 125, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  animation:
    pricingCtaPulse 2.6s ease-in-out infinite,
    pricingProButtonGlow 3.8s ease-in-out infinite;
}
.pricing-plan-card .pricing-btn--recommended:hover {
  background: var(--brand-grad) !important;
  animation: none;
  filter: saturate(1.06) brightness(1.02);
  box-shadow:
    0 18px 38px rgba(196, 76, 255, 0.22),
    0 10px 24px rgba(76, 125, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
@keyframes pricingCtaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}
@keyframes pricingBlueButtonBreath {
  0%, 100% {
    box-shadow:
      0 14px 30px rgba(0, 122, 255, 0.22),
      0 4px 12px rgba(0, 122, 255, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  50% {
    box-shadow:
      0 18px 38px rgba(0, 122, 255, 0.28),
      0 7px 18px rgba(0, 122, 255, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
}
@keyframes pricingProButtonGlow {
  0%, 100% {
    filter: saturate(1);
    box-shadow:
      0 14px 30px rgba(196, 76, 255, 0.18),
      0 8px 20px rgba(76, 125, 255, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
  50% {
    filter: saturate(1.12) brightness(1.02);
    box-shadow:
      0 20px 44px rgba(196, 76, 255, 0.24),
      0 12px 28px rgba(76, 125, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}
@keyframes pricingCtaShine {
  0%, 45% { transform: translateX(-130%); }
  72%, 100% { transform: translateX(130%); }
}
@keyframes pricingProviderBreathe {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@keyframes pricingFeatureCurrent {
  0%, 100% { translate: 0 0; }
  45% { translate: 0 0; }
  52% { translate: 2px 0; }
  60% { translate: 0 0; }
}
.pricing-check--recommended {
  filter: drop-shadow(0 2px 5px rgba(196, 76, 255, 0.18));
  animation: pricingCheckBeat 2.8s ease-in-out infinite;
}
@keyframes pricingCheckBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ─── Pill / badge ──────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.pill-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  height: 28px;
  padding: 0 12px;
  letter-spacing: 0;
}

/* ─── Brand mark ────────────────────────────────────────────────────── */
.brand-grad-text {
  position: relative;
  isolation: isolate;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 0 18px rgba(255, 138, 76, 0.08),
    0 0 26px rgba(255, 77, 141, 0.06),
    0 0 30px rgba(196, 76, 255, 0.065),
    0 0 24px rgba(76, 125, 255, 0.05);
}
.brand-grad-text::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 10% -7% 6% -7%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 54%, rgba(255, 138, 76, 0.14), transparent 40%),
    radial-gradient(circle at 48% 48%, rgba(255, 77, 141, 0.13), transparent 43%),
    radial-gradient(circle at 76% 52%, rgba(196, 76, 255, 0.14), transparent 43%),
    radial-gradient(circle at 92% 52%, rgba(76, 125, 255, 0.1), transparent 40%);
  filter: blur(13px);
  opacity: 0.58;
  transform: scale(0.96);
  pointer-events: none;
}
.brand-grad-text::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 24% -2% 18% -2%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  filter: blur(7px);
  opacity: 0.24;
  pointer-events: none;
}
/* « Chatflix » seul : serif italique (dégradé inchangé) + lueur brand très douce (comme le CTA, plus faible) */
.display-brand-serif {
  position: relative;
  isolation: isolate;
  font-family: var(--font-display-serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 1.1em; /* +10 % vs le .display */
  letter-spacing: -0.02em;
  text-shadow:
    0 0 22px rgba(255, 138, 76, 0.09),
    0 0 34px rgba(255, 77, 141, 0.065),
    0 0 40px rgba(196, 76, 255, 0.075),
    0 0 30px rgba(76, 125, 255, 0.055);
}
.hero-title-accent {
  padding-left: 0.06em;
  padding-right: 0.2em;
  margin-left: -0.04em;
  margin-right: 0.08em !important;
}
.hero-accent-aura::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 16% -8% 8% -8%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 54%, rgba(255, 138, 76, 0.14), transparent 40%),
    radial-gradient(circle at 48% 48%, rgba(255, 77, 141, 0.13), transparent 43%),
    radial-gradient(circle at 76% 52%, rgba(196, 76, 255, 0.14), transparent 43%),
    radial-gradient(circle at 92% 52%, rgba(76, 125, 255, 0.1), transparent 40%);
  filter: blur(13px);
  opacity: 0.62;
  transform: scale(0.96);
  pointer-events: none;
}
.hero-accent-aura::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 28% -3% 20% -3%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(7px);
  opacity: 0.28;
  pointer-events: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 12px rgba(196, 76, 255, 0.25);
}
.brand-mark-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 30px; }

/* ─── Card hover ────────────────────────────────────────────────────── */
.lift {
  transition: transform 280ms cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 280ms ease;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-hover);
}
.glass.modalities-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--modalities-card-shadow);
}
.glass.modalities-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.12), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.1), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.12), transparent 44%);
}
.glass.modalities-card > * {
  position: relative;
  z-index: 1;
}
.glass.lift.modalities-card:hover {
  box-shadow: var(--modalities-card-shadow-hover);
}
/* §08 FAQ — accordéons : pas de lift au survol ; ombre plus douce que les cartes modalités */
.glass.faq-accordion-card {
  position: relative;
  isolation: isolate;
  box-shadow:
    0 10px 32px rgba(99, 102, 241, 0.1),
    0 18px 44px rgba(15, 23, 42, 0.078),
    0 3px 10px rgba(0, 0, 0, 0.048);
  transition:
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.34s ease,
    background 0.34s ease;
  will-change: transform, opacity, filter;
}
.glass.faq-accordion-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.12), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.1), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.12), transparent 44%);
  transform: scale(0.98);
  transition:
    opacity 0.36s ease,
    transform 0.46s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass.faq-accordion-card > * {
  position: relative;
  z-index: 1;
}
.glass.faq-accordion-card:hover,
.glass.faq-accordion-card--open {
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 46px rgba(99, 102, 241, 0.14),
    0 26px 64px rgba(15, 23, 42, 0.092),
    0 4px 14px rgba(0, 0, 0, 0.052);
}
.glass.faq-accordion-card:hover::before,
.glass.faq-accordion-card--open::before {
  opacity: 1;
  transform: scale(1);
}
.faq-accordion-button {
  transition:
    color 0.26s ease,
    transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass.faq-accordion-card:hover .faq-accordion-button {
  transform: translateX(4px);
}
.faq-accordion-toggle {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  box-shadow:
    0 5px 14px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  transition:
    transform 410ms cubic-bezier(.34,1.56,.64,1),
    background 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease !important;
}
.faq-accordion-toggle::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.48), transparent 70%);
  transform: translateX(-90%) rotate(12deg);
  opacity: 0;
  pointer-events: none;
}
.glass.faq-accordion-card:hover .faq-accordion-toggle,
.glass.faq-accordion-card--open .faq-accordion-toggle {
  color: var(--ink);
  background: rgba(10, 10, 15, 0.04) !important;
  box-shadow:
    0 5px 14px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}
.glass.faq-accordion-card:hover .faq-accordion-toggle::after,
.glass.faq-accordion-card--open .faq-accordion-toggle::after {
  opacity: 0;
  animation: none;
}
.faq-accordion-answer {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.42s ease,
    transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-accordion-card--open .faq-accordion-answer {
  opacity: 1;
  transform: translateY(0);
}
@keyframes faqToggleShine {
  from { transform: translateX(-90%) rotate(12deg); }
  to { transform: translateX(90%) rotate(12deg); }
}
/* §06 Comparatif — colonne Chatflix : une seule ombre sur toute la hauteur */
.glass.comparison-table-shell {
  overflow: visible;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.06), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.055), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.06), transparent 44%),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.08),
    0 14px 48px rgba(76, 125, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.comparison-scroll {
  overflow-x: auto;
}
.comparison-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 2px;
  background: rgba(10, 10, 15, 0.045);
  border-radius: 20px;
  overflow: hidden;
}
.comparison-table th,
.comparison-table td {
  padding: 15px 16px;
  font-size: 14px;
  letter-spacing: -0.005em;
  background: #fff;
  border: 1px solid rgba(10, 10, 15, 0.035);
  text-align: center;
  vertical-align: middle;
}
.comparison-table thead th {
  height: 76px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.comparison-table thead th:first-child {
  min-width: 220px;
  background: rgba(247, 247, 249, 0.96);
}
.comparison-table thead th:not(:first-child) {
  min-width: 200px;
  background: rgba(247, 247, 249, 0.86);
}
.comparison-tool-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.comparison-tool-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  flex-shrink: 0;
}
.comparison-tool-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.comparison-tool-name {
  color: var(--ink);
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}
.comparison-table tbody th {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(247, 247, 249, 0.86);
  border-right: 1px solid rgba(10, 10, 15, 0.06);
  text-align: center;
}
.comparison-table tbody td {
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.93);
}
.comparison-cell-content {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  line-height: 1.25;
}
.comparison-cell-content--chatflix {
  flex-direction: column;
  gap: 8px;
}
.comparison-chatflix-head,
.comparison-cell--chatflix {
  position: relative;
  z-index: 1;
}
.comparison-chatflix-head {
  color: var(--accent) !important;
  font-weight: 600 !important;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.12), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.1), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.84) !important;
  border-radius: 0 20px 0 0;
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.08);
}
.comparison-cell--chatflix {
  color: var(--ink) !important;
  font-weight: 600;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.16), transparent 36%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.13), transparent 38%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.82) !important;
  border-left: 1px solid rgba(76, 125, 255, 0.22);
  border-right: 1px solid rgba(76, 125, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.comparison-row--last .comparison-cell--chatflix {
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 0 0 20px 0;
}
.comparison-key-badge {
  margin-left: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #2563EB;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.comparison-auto-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #2563EB 0%, #7C3AED 100%);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.22);
}
.comparison-ai-logos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 172px;
}
.comparison-ai-logo {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}
.comparison-ai-logo img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}
.comparison-cell-empty {
  color: #C5C5CC;
  font-size: 16px;
  line-height: 1;
}

/* Entrée addictive : lignes qui montent une à une */
.comparison-reveal:not(.in) .comparison-row {
  opacity: 0;
  transform: translateY(14px);
}
.comparison-reveal.in .comparison-row {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(100ms + var(--comparison-row-idx, 0) * 120ms);
}

.glass.memory-window {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    var(--modalities-card-shadow),
    0 14px 40px rgba(15, 23, 42, 0.06);
}
.glass.memory-window::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.12), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.1), transparent 36%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.12), transparent 44%);
}
.glass.memory-window > * {
  position: relative;
  z-index: 1;
}

.memory-active-dot {
  animation: memoryActivePulse 2s ease-in-out infinite;
}
@keyframes memoryActivePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.memory-preview-card {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.065),
    0 2px 8px rgba(37, 99, 235, 0.06);
}
.memory-preview-card__label {
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--ink-3);
}
.memory-preview-card__prompt {
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-2);
}
.memory-preview-card__answer {
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}

/* §04 Mémoire — cartes « facts » : ombre + entrée fluide */
.memory-fact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 10, 15, 0.065);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.11),
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 2px 5px rgba(0, 0, 0, 0.038);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.95s cubic-bezier(0.14, 1, 0.36, 1),
    transform 1.08s cubic-bezier(0.34, 1.52, 0.42, 1),
    box-shadow 0.5s ease;
}
.memory-fact-card.memory-fact-card--shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.memory-fact-card__text,
.memory-fact-card__tag {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.72s cubic-bezier(0.14, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.34, 1.48, 0.42, 1);
}
.memory-fact-card.memory-fact-card--shown .memory-fact-card__text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.14s;
}
.memory-fact-card.memory-fact-card--shown .memory-fact-card__tag {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.memory-fact-card__meta {
  margin-top: 7px;
}
.memory-fact-card__tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  font-family: var(--font-sans);
}
.memory-fact-card__tag--metier {
  background: rgba(239, 246, 255, 0.95);
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.13);
}
.memory-fact-card__tag--style {
  background: rgba(245, 243, 255, 0.95);
  color: #6d28d9;
  border-color: rgba(109, 40, 217, 0.13);
}
.memory-fact-card__tag--stack {
  background: rgba(236, 253, 245, 0.95);
  color: #047857;
  border-color: rgba(4, 120, 87, 0.13);
}
.memory-fact-card__tag--langue {
  background: rgba(255, 247, 237, 0.95);
  color: #c2410c;
  border-color: rgba(194, 65, 12, 0.13);
}
.memory-fact-card__tag--contexte {
  background: rgba(253, 242, 248, 0.95);
  color: #be185d;
  border-color: rgba(190, 24, 93, 0.13);
}

.memory-fact-card__actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(14px);
  transition:
    opacity 0.62s cubic-bezier(0.14, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.34, 1.45, 0.42, 1);
}
.memory-fact-card.memory-fact-card--shown .memory-fact-card__actions {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.36s;
}

.memory-fact-card__btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  box-shadow:
    0 3px 10px rgba(15, 23, 42, 0.07),
    0 1px 4px rgba(0, 0, 0, 0.035);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.memory-fact-card__btn:hover {
  color: var(--ink-2);
  box-shadow:
    0 5px 14px rgba(15, 23, 42, 0.09),
    0 2px 6px rgba(0, 0, 0, 0.042);
}

.memory-footer-btn {
  height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid rgba(10, 10, 15, 0.11);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.004em;
  cursor: default;
  display: inline-flex;
  align-items: center;
}
.memory-footer-btn--ghost {
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
}

/* ─── Reveal on scroll ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 880ms cubic-bezier(0.22, 1, 0.36, 1), transform 880ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 880ms cubic-bezier(0.22, 1, 0.36, 1), transform 880ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 105ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 210ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 315ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 420ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 525ms; }

/* FAQ : apparition en cascade avec ressort, profondeur et blur doux */
.reveal-stagger.faq-list-reveal > * {
  opacity: 0;
  transform: translateY(46px) scale(0.965) perspective(900px) rotateX(8deg);
  filter: blur(10px);
  transform-origin: 50% 0;
  transition:
    opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.94s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.78s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.faq-list-reveal.in > * {
  opacity: 1;
  transform: translateY(0) scale(1) perspective(900px) rotateX(0);
  filter: blur(0);
}
.reveal-stagger.faq-list-reveal.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.faq-list-reveal.in > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.faq-list-reveal.in > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.faq-list-reveal.in > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.faq-list-reveal.in > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.faq-list-reveal.in > *:nth-child(6) { transition-delay: 450ms; }

/* Pricing cards : "Apple" addictive spring & blur reveal */
.reveal-stagger.pricing-cards-reveal > * {
  opacity: 0;
  transform: translateY(80px) scale(0.92) perspective(1000px) rotateX(12deg);
  filter: blur(12px);
  will-change: transform, opacity, filter;
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.pricing-cards-reveal.in > * {
  opacity: 1;
  transform: translateY(0) scale(1) perspective(1000px) rotateX(0);
  filter: blur(0);
}
.reveal-stagger.pricing-cards-reveal.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.pricing-cards-reveal.in > *:nth-child(2) { transition-delay: 140ms; }
.reveal-stagger.pricing-cards-reveal.in > *:nth-child(3) { transition-delay: 280ms; }
.reveal-stagger.pricing-cards-reveal.in > *:nth-child(4) { transition-delay: 420ms; }

/* Grille modalités : `--modalities-chain-offset` = i × 260ms (JS) ; puces après mock +430ms */
.reveal-stagger.modalities-cards-reveal {
  --modalities-after-mock: 430ms;
  --modalities-bullet-gap: 34ms;
}
.reveal-stagger.modalities-cards-reveal > * {
  opacity: 0;
  transform: translateY(40px) scale(0.93);
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.32, 1),
    transform 0.58s cubic-bezier(0.34, 1.58, 0.34, 1);
}
.reveal-stagger.modalities-cards-reveal.in > * {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: var(--modalities-chain-offset, 0ms);
}

/* Dans chaque carte : eyebrow → titre → fenêtre mock → puces une par une (tous relatifs à --modalities-chain-offset) */
.modalities-cards-reveal:not(.in) .modalities-card-seq-item {
  opacity: 0;
  transform: translateY(22px);
}
.modalities-cards-reveal.in .modalities-card .modalities-card-seq-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.42s cubic-bezier(0.12, 1, 0.34, 1),
    transform 0.52s cubic-bezier(0.34, 1.58, 0.38, 1);
}
.modalities-cards-reveal.in .modalities-card .modalities-card-seq-item:nth-child(1) {
  transition-delay: calc(var(--modalities-chain-offset, 0ms) + 20ms);
}
.modalities-cards-reveal.in .modalities-card .modalities-card-seq-item:nth-child(2) {
  transition-delay: calc(var(--modalities-chain-offset, 0ms) + 55ms);
}
.modalities-cards-reveal.in .modalities-card .modalities-card-seq-item:nth-child(3) {
  transition-delay: calc(var(--modalities-chain-offset, 0ms) + 110ms);
}
.modalities-cards-reveal.in .modalities-card .modalities-card-seq-bullet {
  transition-delay: calc(
    var(--modalities-chain-offset, 0ms) + var(--modalities-after-mock) +
      var(--modalities-bullet-idx, 0) * var(--modalities-bullet-gap)
  );
}

/* ─── Modalités : entrée fluide des mocks (cartes Chat / Image / Code / Voix) ─ */
.modalities-mock-stage:not(.modalities-mock-stage--in) .modalities-mock-item,
.modalities-mock-stage:not(.modalities-mock-stage--in) .modalities-mock-chip {
  opacity: 0;
}
.modalities-mock-stage:not(.modalities-mock-stage--in) .modalities-mock-item {
  transform: translateY(14px);
}
.modalities-mock-stage:not(.modalities-mock-stage--in) .modalities-mock-item--chat-user {
  transform: translate(16px, 12px) scale(0.98);
}
.modalities-mock-stage:not(.modalities-mock-stage--in) .modalities-mock-item--chat-ai {
  transform: translate(-14px, 10px) scale(0.98);
}
.modalities-mock-stage:not(.modalities-mock-stage--in) .modalities-mock-item--image-canvas {
  transform: translateY(18px) scale(0.965);
}
.modalities-mock-stage:not(.modalities-mock-stage--in) .modalities-mock-chip {
  transform: translateY(9px);
}
.modalities-mock-stage:not(.modalities-mock-stage--in) .modalities-pill-ratio-mark {
  opacity: 0;
  transform: scale(0.82);
}

.modalities-mock-stage--in .modalities-mock-item {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  transition:
    opacity 0.5s cubic-bezier(0.12, 1, 0.34, 1),
    transform 0.62s cubic-bezier(0.34, 1.58, 0.38, 1);
}
.modalities-mock-stage--in .modalities-mock-item:nth-child(1) { transition-delay: 0.03s; }
.modalities-mock-stage--in .modalities-mock-item:nth-child(2) { transition-delay: 0.1s; }
.modalities-mock-stage--in .modalities-mock-item:nth-child(3) { transition-delay: 0.18s; }
.modalities-mock-stage--in .modalities-mock-item:nth-child(4) { transition-delay: 0.26s; }

.modalities-mock-stage--in .modalities-mock-chip {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.38s cubic-bezier(0.12, 1, 0.34, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.38, 1);
}
.modalities-mock-stage--in .modalities-mock-chip:nth-child(1) { transition-delay: 0.18s; }
.modalities-mock-stage--in .modalities-mock-chip:nth-child(2) { transition-delay: 0.24s; }
.modalities-mock-stage--in .modalities-mock-chip:nth-child(3) { transition-delay: 0.3s; }
.modalities-mock-stage--in .modalities-mock-chip:nth-child(4) { transition-delay: 0.36s; }
.modalities-mock-stage--in .modalities-mock-chip:nth-child(5) { transition-delay: 0.42s; }
.modalities-mock-stage--in .modalities-mock-chip:nth-child(6) { transition-delay: 0.48s; }

.modalities-mock-stage--in .modalities-pill-ratio-mark {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.34s cubic-bezier(0.18, 1, 0.34, 1),
    transform 0.48s cubic-bezier(0.34, 1.58, 0.38, 1);
}
.modalities-mock-stage--in .pill.pill-mono:nth-of-type(1) .modalities-pill-ratio-mark { transition-delay: 0.08s; }
.modalities-mock-stage--in .pill.pill-mono:nth-of-type(2) .modalities-pill-ratio-mark { transition-delay: 0.14s; }
.modalities-mock-stage--in .pill.pill-mono:nth-of-type(3) .modalities-pill-ratio-mark { transition-delay: 0.2s; }

.modalities-mock-stage:not(.modalities-mock-stage--in) .modalities-mock-chip img {
  opacity: 0;
  transform: scale(0.88);
}
.modalities-mock-stage--in .modalities-mock-chip img {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.34s cubic-bezier(0.18, 1, 0.34, 1),
    transform 0.46s cubic-bezier(0.34, 1.56, 0.38, 1);
}
.modalities-mock-stage--in .modalities-mock-chip:nth-child(1) img { transition-delay: 0.2s; }
.modalities-mock-stage--in .modalities-mock-chip:nth-child(2) img { transition-delay: 0.26s; }
.modalities-mock-stage--in .modalities-mock-chip:nth-child(3) img { transition-delay: 0.32s; }
.modalities-mock-stage--in .modalities-mock-chip:nth-child(4) img { transition-delay: 0.38s; }
.modalities-mock-stage--in .modalities-mock-chip:nth-child(5) img { transition-delay: 0.44s; }
.modalities-mock-stage--in .modalities-mock-chip:nth-child(6) img { transition-delay: 0.5s; }

.modalities-mock-item--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.modalities-mock-chip {
  display: inline-flex;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Striped placeholder for product imagery ───────────────────────── */
.placeholder-stripe {
  background-image: repeating-linear-gradient(135deg,
    rgba(10, 10, 15, 0.04) 0,
    rgba(10, 10, 15, 0.04) 1px,
    transparent 1px,
    transparent 8px);
}

/* Ancre « Accueil » ; whole hero (+ vidéo) remonte sous la nav fixe sans bouger la barre */
#section-hero {
  scroll-margin-top: 100px;
  position: relative;
  margin-top: -50px;
}

/* ─── Hero — première colonne centrée (référence absolute ; pas de container-type ici :
       dans iframe / calcul cyclique, cqw peut valoir 0 et effondrer min(..., 90cqw, …)). ─ */
#section-hero .hero-first-screen {
  width: 100%;
  max-width: min(1480px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  /*
    Nav fixe (≈ top 24px + pilule ~52–58px + marge lisible).
    #section-hero a margin-top: -50px → on ajoute 50px ici pour garder un passage minimum sous la pilule.
  */
  padding-top: max(
    120px,
    calc(env(safe-area-inset-top, 0px) + 24px + 58px + 18px + 50px)
  );
  padding-right: 32px;
  padding-bottom: clamp(48px, 7vh, 72px);
  padding-left: 32px;
  margin-top: 45px;
}

/* ─── Hero — texte & CTA ; carrousel logos en profondeur (jeu de cartes) ─ */
.hero-foreground {
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: 100%;
  transform: translateY(-66px);
}
.hero-foreground-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-inline: 0;
  transform: translateY(50px);
}
.hero-below-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transform: translateY(10px);
}
.hero-side-illustration {
  --hero-side-opacity: 0.92;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  width: clamp(210px, 26%, 360px);
  max-height: min(40dvh, 340px);
  height: auto;
  object-fit: contain;
  opacity: 0;
  translate: 0 -42px;
  filter:
    drop-shadow(0 42px 28px rgba(15, 23, 42, 0.14))
    drop-shadow(0 18px 18px rgba(15, 23, 42, 0.08))
    drop-shadow(0 12px 24px rgba(196, 76, 255, 0.06));
  transition:
    opacity 640ms cubic-bezier(.22, 1, .36, 1),
    filter 760ms cubic-bezier(.22, 1, .36, 1),
    translate 980ms cubic-bezier(.14, 1.55, .32, 1);
}
.hero-side-illustration--visible {
  opacity: var(--hero-side-opacity);
  translate: 0 0;
}
.hero-side-illustration--left {
  left: calc(clamp(16px, 5%, 96px) + 30px);
  top: calc(57% - 50px);
  transform: translateY(-50%) scale(1.18) rotate(-3deg);
  animation: hero-side-float-left 5.8s ease-in-out infinite;
  transition-delay: 80ms;
}
.hero-side-illustration--right {
  right: calc(clamp(16px, 5%, 98px) + 50px);
  top: calc(57% - 50px);
  transform: translateY(-50%) scale(0.94) rotate(3deg);
  animation: hero-side-float-right 6.2s ease-in-out infinite;
  transition-delay: 170ms;
}

@keyframes hero-side-float-left {
  0%, 100% {
    transform: translateY(-50%) scale(1.18) rotate(-3deg);
  }
  50% {
    transform: translateY(calc(-50% - 14px)) scale(1.18) rotate(-1.5deg);
  }
}

@keyframes hero-side-float-right {
  0%, 100% {
    transform: translateY(-50%) scale(0.94) rotate(3deg);
  }
  50% {
    transform: translateY(calc(-50% - 12px)) scale(0.94) rotate(1.5deg);
  }
}

.hero-deck-carousel {
  pointer-events: none;
  margin-bottom: 26px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.52s cubic-bezier(0.34, 1.35, 0.36, 1);
}
.hero-deck-carousel--on {
  opacity: 1;
  transform: translateY(0);
}

.hero-deck-carousel__bob {
  animation: hero-deck-carousel-float 6.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Carte du milieu (s0) : base × scale(1.06) = 90px de hauteur */
.hero-deck-carousel__stage {
  position: relative;
  width: min(calc(360px * 90 / 106), 90%, 100%);
  /* ~15vw mais plafonné (~15% de 1480px) pour éviter l’étirement ultra-large */
  height: clamp(
    calc(104px * 90 / 106),
    calc(min(15vw, 222px) * 90 / 106),
    calc(124px * 90 / 106)
  );
  transform-style: preserve-3d;
  perspective: 920px;
  perspective-origin: 50% 42%;
}

.hero-deck-carousel__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(90px / 1.06);
  height: calc(90px / 1.06);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition:
    transform 1.05s cubic-bezier(0.33, 1.02, 0.28, 1),
    opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.82s ease;
  will-change: transform;
}

.hero-deck-carousel__card-inner {
  width: 100%;
  height: 100%;
  border-radius: calc(26px * 90 / 106);
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-deck-carousel__card-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14%;
  box-sizing: border-box;
}

.hero-deck-carousel__img--cover {
  object-fit: cover;
  object-position: center;
  padding: 0 !important;
}

/* Hors du jeu visible (file circulaire > 5) */
.hero-deck-carousel__card--hidden {
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: none;
  transform: translate(-50%, -50%) translateZ(-200px) scale(0.3);
  transition:
    transform 1.05s cubic-bezier(0.33, 1.02, 0.28, 1),
    opacity 0.45s ease,
    visibility 0s linear 0.46s,
    filter 0.45s ease;
}

/* Profondeur : carte du devant au centre, les autres reculent et pivotent */
.hero-deck-carousel__card--sn2 {
  z-index: 1;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) translateX(calc(-112px * 90 / 106)) translateZ(calc(-58px * 90 / 106)) scale(0.71) rotateY(17deg);
}
.hero-deck-carousel__card--sn1 {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) translateX(calc(-56px * 90 / 106)) translateZ(calc(-14px * 90 / 106)) scale(0.85) rotateY(8deg);
}
.hero-deck-carousel__card--s0 {
  z-index: 10;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) translateX(0) translateZ(calc(48px * 90 / 106)) scale(1.06) rotateY(0deg);
}
.hero-deck-carousel__card--s0 .hero-deck-carousel__card-inner {
  box-shadow:
    0 22px 50px rgba(15, 23, 42, 0.17),
    0 8px 20px rgba(15, 23, 42, 0.08);
}
.hero-deck-carousel__card--s1 {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) translateX(calc(56px * 90 / 106)) translateZ(calc(-14px * 90 / 106)) scale(0.85) rotateY(-8deg);
}
.hero-deck-carousel__card--s2 {
  z-index: 1;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) translateX(calc(112px * 90 / 106)) translateZ(calc(-58px * 90 / 106)) scale(0.71) rotateY(-17deg);
}

@keyframes hero-deck-carousel-float {
  0%, 100% { transform: translateY(0) scale(0.94); }
  50% { transform: translateY(-7px) scale(0.94); }
}

@media (max-width: 720px) {
  .hero-deck-carousel {
    margin-bottom: 20px;
  }
  /* Même hauteur visuelle du devant : 90px (scale 1.04 sur la base) */
  .hero-deck-carousel__stage {
    width: min(calc(300px * 90 / 89.44), 92%, 100%);
    height: clamp(
      calc(92px * 90 / 89.44),
      calc(min(22vw, 326px) * 90 / 89.44),
      calc(108px * 90 / 89.44)
    );
    perspective: 780px;
  }
  .hero-deck-carousel__card {
    width: calc(90px / 1.04);
    height: calc(90px / 1.04);
  }
  .hero-deck-carousel__card--sn2 {
    transform: translate(-50%, -50%) translateX(calc(-88px * 90 / 89.44)) translateZ(calc(-48px * 90 / 89.44)) scale(0.69) rotateY(15deg);
  }
  .hero-deck-carousel__card--sn1 {
    transform: translate(-50%, -50%) translateX(calc(-44px * 90 / 89.44)) translateZ(calc(-12px * 90 / 89.44)) scale(0.83) rotateY(7deg);
  }
  .hero-deck-carousel__card--s0 {
    transform: translate(-50%, -50%) translateX(0) translateZ(calc(40px * 90 / 89.44)) scale(1.04) rotateY(0deg);
  }
  .hero-deck-carousel__card--s1 {
    transform: translate(-50%, -50%) translateX(calc(44px * 90 / 89.44)) translateZ(calc(-12px * 90 / 89.44)) scale(0.83) rotateY(-7deg);
  }
  .hero-deck-carousel__card--s2 {
    transform: translate(-50%, -50%) translateX(calc(88px * 90 / 89.44)) translateZ(calc(-48px * 90 / 89.44)) scale(0.69) rotateY(-15deg);
  }
  .hero-deck-carousel__card-inner {
    border-radius: calc(22px * 90 / 89.44);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-deck-carousel {
    transition-duration: 0.01ms !important;
  }
  .hero-deck-carousel__bob {
    animation: none !important;
    transform: scale(0.94);
  }
  .hero-deck-carousel__card {
    transition-duration: 0.01ms !important;
    will-change: auto;
  }
  .hero-deck-carousel__card--hidden {
    transition-duration: 0.01ms !important;
    visibility: hidden;
  }
}

#hero-video-scroll-root {
  /* Moins agressif que -70px pour limiter le chevauchement avec le ticker sous les CTA */
  margin-top: clamp(-58px, -7vh, -48px);
  padding: 0 32px 94px;
}

/* Fenêtres très basses uniquement (p.ex. ~480 px utiles) : contenu peut défiler, pas de régression laptop */
@media (max-height: 480px) and (min-width: 721px) {
  .hero-side-illustration {
    display: none !important;
  }
  #section-hero .hero-first-screen {
    min-height: unset;
    padding-top: max(112px, calc(env(safe-area-inset-top, 0px) + 130px));
  }
}

/* Vidéo hero — rayon du cadre vidéo ; la bulle suit (r + --hero-video-halo-pad) */
.hero-video-shell {
  position: relative;
  --hero-video-r: 44px;
  --hero-video-halo-pad: 10px;
}
.hero-video-shell,
.hero-video-shell .hero-video-interactive {
  border-radius: var(--hero-video-r);
}

/* Halo derrière la vidéo : +10px de chaque côté, angles concordants (r intérieur + pad) */
.hero-video-halo {
  position: absolute;
  z-index: 0;
  inset: calc(-1 * var(--hero-video-halo-pad));
  border-radius: calc(var(--hero-video-r) + var(--hero-video-halo-pad));
  pointer-events: none;
}

/* Ombre sur calque dédié : évite que backdrop-filter masque le box-shadow (Safari / Chromium) */
.hero-video-halo__shadow,
.hero-video-halo__glass {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  display: block;
}

.hero-video-halo__glass {
  z-index: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 138, 76, 0.36), transparent 38%),
    radial-gradient(circle at 82% 22%, rgba(196, 76, 255, 0.3), transparent 40%),
    radial-gradient(circle at 50% 115%, rgba(76, 125, 255, 0.36), transparent 48%),
    rgba(255, 255, 255, 0.68);
  backdrop-filter: var(--nav-pill-backdrop);
  -webkit-backdrop-filter: var(--nav-pill-backdrop);
}

.hero-video-halo__shadow {
  z-index: 1;
  background: transparent;
  box-shadow: var(--hero-video-shadow);
  transform: translateZ(0);
}

/* Vidéo hero : même ombre centrée (fenêtre) — utile si appliqué sans halo */
.mock-hero-video-shadow {
  box-shadow: var(--hero-video-shadow);
}

/* Panneaux mock §03 / §05 — ombre type carte glass */
.surface-glass-shadow {
  box-shadow: var(--glass-shadow);
}
/* §03 seulement : fenêtre mock plus marquée derrière le contenu */
.surface-glass-shadow.surface-glass-shadow--modalities {
  box-shadow: var(--modalities-mock-surface-shadow);
}

/* Fenêtres internes des mocks Chat / Image / Code / Voix */
.modalities-mock-stage .modalities-mock-item--chat-user {
  box-shadow:
    0 10px 26px rgba(37, 99, 235, 0.3),
    0 5px 14px rgba(15, 23, 42, 0.11),
    0 2px 5px rgba(0, 0, 0, 0.065);
}
.modalities-mock-stage .modalities-mock-item--chat-ai {
  box-shadow:
    0 11px 30px rgba(15, 23, 42, 0.125),
    0 5px 14px rgba(0, 0, 0, 0.072),
    0 2px 5px rgba(0, 0, 0, 0.045);
}
.modalities-mock-stage .modalities-mock-item--image-canvas {
  box-shadow:
    0 12px 34px rgba(124, 58, 237, 0.155),
    0 6px 20px rgba(15, 23, 42, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.055);
}
.modalities-mock-stage .pill.pill-mono {
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.085),
    0 2px 5px rgba(0, 0, 0, 0.038);
}
.modalities-mock-chip > div {
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.095),
    0 2px 5px rgba(0, 0, 0, 0.042) !important;
}
.modalities-mock-code-preview {
  box-shadow:
    0 9px 26px rgba(15, 23, 42, 0.1),
    0 4px 11px rgba(0, 0, 0, 0.055),
    0 2px 4px rgba(0, 0, 0, 0.036);
}
.modalities-point-planet {
  --planet-size: 58px;
  position: relative;
  width: var(--planet-size);
  height: var(--planet-size);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: modalitiesPlanetSpin 8s linear infinite;
}
.modalities-point-planet::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9), transparent 18%),
    radial-gradient(circle at 52% 54%, rgba(76, 125, 255, 0.16), transparent 48%);
  box-shadow:
    0 0 22px rgba(76, 125, 255, 0.2),
    0 0 30px rgba(196, 76, 255, 0.12);
  opacity: 0.82;
  transform: translateZ(-3px);
}
.modalities-point-planet::after {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.28), transparent);
  transform: translateY(-50%) rotateZ(-12deg);
}
.modalities-point-planet span {
  --angle: calc(var(--dot-i) * 12.857deg);
  --ring-y: calc((var(--dot-i) % 7 - 3) * 5px);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #2563EB;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.28);
  transform:
    translate(-50%, -50%)
    rotateY(var(--angle))
    translateZ(25px)
    translateY(var(--ring-y));
  opacity: calc(0.44 + (var(--dot-i) % 5) * 0.09);
}
.modalities-point-planet span:nth-child(3n) {
  background: #C44CFF;
  box-shadow: 0 0 8px rgba(196, 76, 255, 0.28);
}
.modalities-point-planet span:nth-child(4n) {
  background: #FF8A4C;
  box-shadow: 0 0 8px rgba(255, 138, 76, 0.24);
}
@keyframes modalitiesPlanetSpin {
  from { transform: rotateX(-12deg) rotateY(0deg) rotateZ(-4deg); }
  to { transform: rotateX(-12deg) rotateY(360deg) rotateZ(-4deg); }
}
.modalities-mock-flux-badge {
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.26),
    0 2px 6px rgba(0, 0, 0, 0.16);
}

/* Vidéo hero — recommencer depuis le début (coin haut droit, au survol) */
.hero-video-interactive {
  position: relative;
  z-index: 1;
}
.hero-video-interactive:hover .hero-video-restart,
.hero-video-interactive:focus-within .hero-video-restart {
  opacity: 1;
  pointer-events: auto;
}
.hero-video-restart {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  box-sizing: border-box;
  width: auto;
  min-height: 36px;
  padding: 7px 12px 7px 14px;
  gap: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #0f1014;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.28s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.hero-video-restart__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.hero-video-restart svg {
  flex-shrink: 0;
}
.hero-video-restart:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateX(-50%) scale(1.05);
}
.hero-video-restart:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid rgba(76, 125, 255, 0.95);
  outline-offset: 2px;
}
@media (hover: none) {
  .hero-video-restart {
    opacity: 0.92;
    pointer-events: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-restart {
    transition: none;
  }
}

/* ─── Maquette Chatflix — rangée de modèles qui glisse « derrière » la fenêtre au scroll */
.mock-app-main {
  perspective: 1100px;
  transform-style: preserve-3d;
}
.mock-app-chrome {
  position: relative;
  z-index: 10;
  isolation: isolate;
  width: 100%;
  max-width: 720px;
}
.mock-app-models-dock {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  transition:
    transform 0.68s cubic-bezier(0.175, 0.885, 0.32, 1.12),
    opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.52s ease;
  transform-origin: center top;
  transform-style: preserve-3d;
  will-change: transform;
}
.mock-app-models-dock--tucked {
  transform: translateY(-56px) translateZ(-52px) rotateX(13deg) scale(0.93);
  opacity: 0.58;
  filter: saturate(0.78) blur(0.45px);
}
.model-row-pill-slot {
  transition:
    transform 0.58s cubic-bezier(0.34, 1.45, 0.35, 1),
    opacity 0.48s ease;
  transition-delay: 0ms;
}
.mock-app-models-dock--tucked .model-row-pill-slot {
  transition-delay: calc(var(--pill-i, 0) * 42ms);
  transform: translateY(calc(-5px - var(--pill-i) * 2px));
}
.mock-app-model-footnote {
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.34, 1.45, 0.35, 1);
}
.mock-app-models-dock--tucked .mock-app-model-footnote {
  opacity: 0.42;
  transform: translateY(-8px);
}
@media (prefers-reduced-motion: reduce) {
  .mock-app-models-dock {
    transition-duration: 0.01ms !important;
  }
  .mock-app-models-dock--tucked {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .model-row-pill-slot {
    transition: none !important;
    transform: none !important;
    transition-delay: 0ms !important;
  }
  .mock-app-models-dock--tucked .mock-app-model-footnote {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .display { font-size: calc(64px * var(--scale)); }
  .hero-headline {
    max-width: calc(100vw - 56px);
    font-size: clamp(48px, 6.6vw, 64px);
  }
  .h2 { font-size: calc(40px * var(--scale)); }
  .section { padding: 100px 24px; }
  .hero-foreground-inner {
    align-items: center;
    padding-inline: 0;
    transform: translateY(50px);
  }
  .hero-side-illustration {
    --hero-side-opacity: 0.58;
    width: clamp(150px, 22%, 220px);
    max-height: min(30dvh, 220px);
  }
  .hero-side-illustration--left {
    left: 18px;
    top: 45%;
  }
  .hero-side-illustration--right {
    right: 18px;
    top: 45%;
  }
  .section-after-hero { padding-top: 36px; }
  .routing-demo-section.section-after-hero {
    padding-top: calc(36px + 100px);
  }
}
@media (max-width: 720px) {
  .display { font-size: calc(44px * var(--scale)); letter-spacing: -0.03em; }
  .hero-headline {
    max-width: calc(100vw - 32px);
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1.02;
  }
  .h2 { font-size: calc(32px * var(--scale)); }
  .h3 { font-size: calc(22px * var(--scale)); }
  .lede { font-size: 17px; }
  .section { padding: 72px 20px; }
  .section-after-hero { padding-top: 28px; }
  .routing-demo-section.section-after-hero {
    padding-top: calc(28px + 100px);
  }
  body { font-size: 16px; }
  #section-hero .hero-first-screen {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 28px;
    margin-top: 24px;
  }
  #hero-video-scroll-root {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-side-illustration {
    display: none;
  }
  .pricing-card-value-note {
    white-space: normal;
  }
  .glass.routing-demo-window {
    height: min(408px, 84vh);
    min-height: min(408px, 84vh);
    max-height: min(408px, 84vh);
  }
  .routing-demo-slot-clip {
    font-size: 12px;
    line-height: 1.35;
    height: max(5rem, calc(2lh + 2.5rem));
    margin-top: 4px;
  }
  .routing-demo-reason {
    max-width: min(22rem, 92vw);
  }
  .routing-demo-reply {
    padding: 8px 12px;
    font-size: 14px;
    height: calc(4lh + 16px);
    min-height: calc(4lh + 16px);
    max-height: calc(4lh + 16px);
  }
}

/* §02 — moins d’espace vide sous la carte (après les paddings .section responsive) */
.routing-demo-section.section {
  padding-bottom: 96px;
}
@media (max-width: 1024px) {
  .routing-demo-section.section {
    padding-bottom: 80px;
  }
}
@media (max-width: 720px) {
  .routing-demo-section.section {
    padding-bottom: 64px;
  }
}

/* ─── Navigation pages /beta-* (même comportement que `nav--beta` dans accueil.html) */
.beta-steps-nav.nav {
  position: fixed;
  top: max(24px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 9999;
  backface-visibility: hidden;
  width: max-content;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 8px 12px 8px 14px;
  box-sizing: border-box;
  background: var(--nav-pill-bg);
  backdrop-filter: var(--nav-pill-backdrop);
  -webkit-backdrop-filter: var(--nav-pill-backdrop);
  border: none;
  box-shadow:
    0 6px 28px rgba(15, 23, 42, 0.068),
    0 2px 10px rgba(99, 102, 241, 0.055),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  font-size: 14px;
}

.beta-steps-nav .nav-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.beta-steps-nav .nav-link.nav-step {
  cursor: default;
  user-select: none;
}

.beta-steps-nav .nav-link:hover {
  color: var(--ink);
}

.beta-steps-nav .nav-link:focus-visible {
  outline: 2px solid rgba(196, 76, 255, 0.8);
  outline-offset: 3px;
  border-radius: 4px;
}

.beta-steps-nav .nav-link.nav-link--active {
  color: var(--ink);
  font-weight: 700;
}

.beta-steps-nav .nav-brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.beta-steps-nav .nav-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.beta-steps-nav .nav-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.beta-steps-nav .nav-mid {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin-left: 48px;
  transition: margin-left 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.beta-steps-nav .nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 0;
}

.beta-steps-nav .nav-active-pill {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 50%;
  width: 0;
  height: 34px;
  border-radius: 999px;
  background: rgba(242, 242, 247, 0.82);
  box-shadow:
    0 7px 18px rgba(15, 23, 42, 0.055),
    0 1px 6px rgba(99, 102, 241, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  opacity: 0;
  transform: translate3d(var(--nav-pill-x, 0px), -50%, 0);
  pointer-events: none;
  will-change: transform, width;
  transition:
    transform 0.72s cubic-bezier(0.2, 0.9, 0.18, 1),
    width 0.72s cubic-bezier(0.2, 0.9, 0.18, 1),
    opacity 0.22s ease;
}

.beta-steps-nav .beta-steps-nav__mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.beta-steps-nav .beta-steps-nav__mark img {
  display: block;
  width: 28px;
  height: 28px;
}

/* Intro : barre visible tout de suite (équivalent `nav-intro--done` sur l’accueil) */
.beta-steps-nav.nav-intro {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.beta-steps-nav.nav-intro.nav-intro--done .nav-intro-el {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 1040px) {
  .beta-steps-nav .nav-mid {
    margin-left: 31px;
  }
  .beta-steps-nav .nav-links {
    gap: 3px;
  }
  .beta-steps-nav .nav-link {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .beta-steps-nav .nav-mid {
    margin-left: 18px;
  }
  .beta-steps-nav .nav-links {
    gap: 2px;
  }
  .beta-steps-nav .nav-link {
    height: 30px;
    padding: 0 7px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beta-steps-nav .nav-active-pill {
    transition: none;
  }
}
