/* ============================================================
   KAPYO — Design System v2  ·  Indigo → Violet, light, premium
   Shared across Accueil / Produit / Tarifs
   ============================================================ */

:root {
  --bg:        #FFFFFF;
  --ink:       #0E1116;
  --ink-2:     #3A414C;
  --muted:     #7A8290;
  --line:      rgba(14,17,22,0.07);
  --line-2:    rgba(14,17,22,0.10);

  /* Brand gradient — vert premium, noir/blanc/gris pour le reste */
  --g1: #15924B;   /* vert principal — même que les bulles */
  --g2: #15924B;   /* vert principal (identique)          */
  --g3: #C9EFD7;   /* vert pastel — couleur graphiques */
  --grad:        linear-gradient(120deg, #111111 0%, #1c1c1e 100%);
  --grad-soft:   #F4F5F7;
  --grad-title:  linear-gradient(108deg, #111827 0%, #1F2937 100%);
  --accent:      #111111;
  --accent-ink:  #0E1116;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-sm:  0 1px 2px rgba(14,17,22,.04), 0 2px 8px -4px rgba(14,17,22,.08);
  --shadow-md:  0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -24px rgba(14,17,22,.18), 0 6px 16px -12px rgba(14,17,22,.10);
  --shadow-lg:  0 30px 70px -34px rgba(8,47,73,.40), 0 12px 30px -18px rgba(14,17,22,.14);
  --shadow-glow:0 24px 60px -22px rgba(14,17,22,.22);
}

/* ── Ambiance intensity (Tweaks) ─────────────────────────────── */
.amb-sobre   #amb-halo  { opacity: .5; }
.amb-sobre   #amb-grid  { opacity: .35; }
.amb-sobre   #amb-noise { opacity: 0; }
.amb-sobre   #amb-wave          { opacity: .07; }
.amb-sobre   #amb-wave::before  { opacity: .05; }
.amb-sobre   #amb-wave::after   { opacity: .06; }

.amb-immersif #amb-halo  { filter: saturate(1.55) contrast(1.12); }
.amb-immersif #amb-grid  { opacity: 1.4; }
.amb-immersif #amb-noise { opacity: .52; }
.amb-immersif #amb-wave          { opacity: .2; }
.amb-immersif #amb-wave::before  { opacity: .15; }
.amb-immersif #amb-wave::after   { opacity: .17; }

/* ── Motion intensity (Tweaks) ───────────────────────────────── */
/* Calme — minimal, gentle fade only, no tilt, no blur */
.motion-calme .reveal-zoom { transform: translateY(22px); filter: none; }
.motion-calme .reveal-up   { transform: translateY(26px); filter: none; }
.motion-calme .reveal-s    { transform: translateY(18px); }
.motion-calme .reveal      { transform: translateY(20px); }
.motion-calme .shot-frame  { transform: rotate(0deg) !important; }
.motion-calme .hero-shot .shot-frame { transform: rotate(0deg) !important; }

/* Spectaculaire — bigger travel, deeper blur, stronger tilt */
.motion-spectaculaire .reveal-zoom { transform: scale(.84) translateY(78px); filter: blur(12px); }
.motion-spectaculaire .reveal-up   { transform: translateY(92px); filter: blur(8px); }
.motion-spectaculaire .reveal      { transform: translateY(58px); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(14,17,22,.12); }

/* ── Ambient background : halos + grid + grain ───────────────── */
#amb-halo, #amb-grid, #amb-noise {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
}
#amb-halo {
  background:
    radial-gradient(46% 40% at 12% 8%,  rgba(14,17,22,.05),  transparent 70%),
    radial-gradient(42% 38% at 92% 18%, rgba(14,17,22,.03), transparent 72%),
    radial-gradient(50% 45% at 80% 96%, rgba(14,17,22,.03), transparent 70%),
    radial-gradient(40% 40% at 20% 92%, rgba(14,17,22,.02),  transparent 72%);
}
#amb-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(14,17,22,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,17,22,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% -4%, #000 22%, transparent 76%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% -4%, #000 22%, transparent 76%);
}
#amb-noise {
  z-index: -1; opacity: .30; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Fluid wave layer (soft flowing ribbons — calm, serene) ── */
/* --wave-a / --wave-b are generated at runtime by buildWave() (see page script). */
#amb-wave {
  position: fixed; inset: -10% 0; z-index: -2; pointer-events: none;
  background: linear-gradient(100deg, #111, #555 55%, #888);
  -webkit-mask: var(--wave-a) repeat-x; mask: var(--wave-a) repeat-x;
  -webkit-mask-size: 1600px 600px; mask-size: 1600px 600px;
  -webkit-mask-position: 0 14%; mask-position: 0 14%;
  opacity: 0;
}
#amb-wave::before, #amb-wave::after {
  content: ""; position: fixed; inset: -10% 0; pointer-events: none;
  background: linear-gradient(100deg, #111, #555 55%, #888);
}
#amb-wave::before {
  -webkit-mask: var(--wave-b) repeat-x; mask: var(--wave-b) repeat-x;
  -webkit-mask-size: 1900px 660px; mask-size: 1900px 660px;
  -webkit-mask-position: 0 52%; mask-position: 0 52%;
  opacity: .34;
}
#amb-wave::after {
  -webkit-mask: var(--wave-a) repeat-x; mask: var(--wave-a) repeat-x;
  -webkit-mask-size: 1400px 540px; mask-size: 1400px 540px;
  -webkit-mask-position: 0 88%; mask-position: 0 88%;
  opacity: .42;
}

/* Legacy decorative circles fully retired in favour of the wave layer */
.blob, .ring-deco { display: none !important; }

/* ── Typography helpers ──────────────────────────────────────── */
.gradient-text {
  background: var(--grad-title); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}

h1,h2,h3,h4 { font-weight: 700; letter-spacing: -0.02em; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; line-height: 1; border-radius: 999px;
  padding: 15px 26px; cursor: pointer; border: 0; text-decoration: none;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff; background: #111111; font-weight: 700;
  box-shadow: 0 4px 14px -4px rgba(14,17,22,.28);
}
.btn-primary:hover { transform: translateY(-2px); background: #000; box-shadow: 0 18px 36px -18px rgba(14,17,22,.40); }
.btn-dark { color:#fff; background: var(--ink); box-shadow: var(--shadow-sm); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(14,17,22,.5); }
.btn-soft {
  color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.btn-soft:hover { transform: translateY(-2px); border-color: rgba(14,17,22,.25); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* ── Surfaces / cards ────────────────────────────────────────── */
.surface {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.glass {
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255,255,255,.6); border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.gradient-border {
  position: relative; background: #fff; border-radius: var(--r-lg);
}
.gradient-border::before {
  content:""; position:absolute; inset:0; border-radius: inherit; padding: 1.5px;
  background: #111111;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* Icon tile */
.icon-tile {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--accent);
  flex-shrink: 0;
}
.icon-tile svg { width: 21px; height: 21px; }
.icon-tile.solid { background: #111111; color:#fff; border-color: transparent; box-shadow: 0 4px 14px -4px rgba(14,17,22,.25); }
/* Client gains: inverse des marchands — fond blanc, icône noir */
#panel-clients .icon-tile.solid { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
/* Selection bubble clients: gris clair avec texte sombre — inverse du noir */
.switch.on-clients .switch-ind { background: #EAEBEE; box-shadow: none; }
.switch.on-clients #tab-clients.switch-btn.active { color: var(--ink); }

/* ── Top navigation ──────────────────────────────────────────── */
/* Floating glass pill nav : wrapper transparent, la pilule visible = .nav-inner */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center;
  padding: 14px 24px; pointer-events: none;
  transition: padding .3s ease;
}
/* Voile de profondeur : flou léger, distinct de la barre, au-dessus/autour de la pilule.
   Se dégrade vers le bas pour un flou progressif quand le contenu remonte. */
.nav::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 82px; z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.nav-inner {
  pointer-events: auto;
  width: 100%; max-width: 1132px; height: 58px;
  padding: 0 12px 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 34px -14px rgba(14,17,22,.20), inset 0 1px 0 rgba(255,255,255,.7);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.nav.scrolled .nav-inner {
  background: rgba(255,255,255,.72);
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 14px 42px -16px rgba(14,17,22,.30), inset 0 1px 0 rgba(255,255,255,.85);
}
.nav.scrolled { padding-top: 10px; }
.brand { font-size: 25px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.brand .dot { background: var(--grad-title); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 9px 16px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: rgba(14,17,22,.04); }
.nav-link.active { color: var(--accent-ink); font-weight: 600; }
.nav-link.active::after {
  content:""; position:absolute; left:16px; right:16px; bottom:3px; height:2px; border-radius:2px; background: var(--ink);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn-text-short { display: none; }
.nav-burger { display:none; width:42px; height:42px; border-radius:12px; border:1px solid var(--line-2); background:#fff; cursor:pointer; align-items:center; justify-content:center; }
.nav-burger svg { width:20px; height:20px; color: var(--ink); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn-text-long { display:none; }
  .nav-cta .btn-text-short { display:inline; }
  .nav { padding-left: 16px; padding-right: 16px; } /* garde le calibrage mobile */
}

/* Mobile menu : carte flottante assortie à la barre */
.mobile-menu {
  position: fixed; top: 82px; left: 16px; right: 16px; z-index: 59;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.6); border-radius: 22px;
  box-shadow: 0 18px 50px -18px rgba(14,17,22,.30), inset 0 1px 0 rgba(255,255,255,.7);
  padding: 10px 16px 14px;
  display: none; flex-direction: column; gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 13px 8px; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--accent-ink); }

/* ── Layout ──────────────────────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: 64px 0; }
section { position: relative; }

/* ── Scroll reveal ───────────────────────────────────────────── */
/* Base = visible (safe for no-JS / frozen environments).
   Hidden state only applies once <html> has .js, and is force-shown by .no-anim. */
.reveal, .reveal-s { opacity: 1; transform: none; }
.js .reveal  { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1), filter .8s ease; transition-delay: var(--d, 0s); will-change: opacity, transform, filter; }
.js .reveal-s{ opacity: 0; transform: scale(.96) translateY(20px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter .9s ease; transition-delay: var(--d,0s); will-change: opacity, transform, filter; }
.js .reveal-zoom { opacity: 0; transform: scale(.9) translateY(54px); filter: blur(8px); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1.05s cubic-bezier(.16,1,.3,1), filter 1s ease; transition-delay: var(--d,0s); will-change: opacity, transform, filter; }
.js .reveal-up { opacity: 0; transform: translateY(64px); filter: blur(5px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1), filter .9s ease; transition-delay: var(--d,0s); }
.js .reveal.in, .js .reveal-s.in, .js .reveal-zoom.in, .js .reveal-up.in { opacity: 1; transform: none; filter: none; }
.no-anim .reveal, .no-anim .reveal-s, .no-anim .reveal-zoom, .no-anim .reveal-up { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }

/* Premium (desktop) : subtil flou de profondeur sur les reveals de texte,
   à la manière des meilleurs SaaS. Ne touche pas aux visuels (.reveal-zoom / .reveal-up). */
@media (min-width: 861px) {
  .js.motion-calme .reveal:not(.in)   { transform: translateY(26px); filter: blur(5px); }
  .js.motion-calme .reveal-s:not(.in) { filter: blur(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-s, .reveal-zoom, .reveal-up,
  .js .reveal, .js .reveal-s, .js .reveal-zoom, .js .reveal-up { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }
  #amb-wave, #amb-wave::before, #amb-wave::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Dashboard screenshot frame (floating) ──────────────────── */
.shot-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; display:block; }
.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 14px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-md);
}

/* ── Misc ────────────────────────────────────────────────────── */
.pill {
  display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:999px;
  background:#fff; border:1px solid var(--line-2); font-size:13px; font-weight:600; color:var(--ink-2); box-shadow: var(--shadow-sm);
}
.live-dot { position: relative; display:inline-flex; width:8px; height:8px; }
.live-dot::before { content:""; position:absolute; inset:0; border-radius:50%; background:#22c55e; }
.live-dot::after { content:""; position:absolute; inset:0; border-radius:50%; background:#22c55e; opacity:.6; animation: ping 2.4s ease-in-out infinite; }
@keyframes ping { 0%{transform:scale(1);opacity:.6} 70%,100%{transform:scale(2.4);opacity:0} }

.divider { height:1px; background: var(--line); border:0; margin:0; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--ink); }

/* Count-up nums use tabular figures */
.tnum { font-variant-numeric: tabular-nums; }

/* Hover lift utility */
.lift { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .35s ease; }
.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-2); }

/* ── Modals ──────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 18px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(14,17,22,.30); backdrop-filter: blur(4px); }
.modal-panel { position: relative; width: 100%; max-width: 640px; background: #fff; border-radius: var(--r-md); box-shadow: 0 40px 90px -30px rgba(14,17,22,.45); overflow: hidden; display: flex; flex-direction: column; max-height: 86vh; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; font-weight: 700; }
.modal-x { background: none; border: 0; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.modal-x svg { width: 20px; height: 20px; }
.modal-x:hover { color: var(--ink); }
.modal-body { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; font-size: 14px; color: var(--ink-2); font-weight: 300; }
.modal-body::-webkit-scrollbar { width: 0; }
.modal-body h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.modal-body p { line-height: 1.65; }
.modal-body p + p { margin-top: 8px; }
.modal-body ul { list-style: disc; padding-left: 20px; margin-top: 6px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.modal-body a { color: var(--accent); text-decoration: none; }
.modal-body a:hover { text-decoration: underline; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); background: #FBFBFC; display: flex; justify-content: flex-end; }
.modal-panel-wide { max-width: 1040px; }
.cal-body { padding: 0; gap: 0; overflow: hidden; }
.cal-frame { width: 100%; height: 74vh; max-height: 760px; min-height: 480px; border: 0; display: block; background: #fff; }

/* ── Contact mode switch ─────────────────────────────────────── */
.contact-switch { display: flex; gap: 5px; padding: 5px; background: #F1F2F5; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px; }
.cs-opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .25s, background .3s, box-shadow .3s; }
.cs-opt svg { width: 17px; height: 17px; }
.cs-opt:hover { color: var(--ink-2); }
.cs-opt.active { background: #111111; color: #fff; box-shadow: 0 4px 14px -4px rgba(14,17,22,.30); }
.cs-opt.active:hover { color: #fff; }
@media (max-width: 420px) { .cs-opt span { font-size: 13px; } }

/* ── RDV intro panel ────────────────────────────────── */
.rdv-meta { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.rdv-meta span { display: inline-flex; align-items: center; gap: 7px; }
.rdv-meta svg { width: 16px; height: 16px; color: var(--muted); }
.rdv-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .6; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 52px; align-items: center; }
.hero-visual { display: flex; justify-content: center; }
.hero-shot { position: relative; width: 100%; max-width: 660px; }
.hero-shot .shot-frame { transition: transform .55s cubic-bezier(.16,1,.3,1); }
.hero-shot:hover .shot-frame { transform: rotate(0deg) !important; }
.hero-widget { width: 100%; max-width: 420px; padding: 22px; transform: rotate(1.6deg); transition: transform .6s cubic-bezier(.16,1,.3,1); }
.hero-widget:hover { transform: rotate(0deg); }
.hw-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hw-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.hw-metric { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.hw-num { font-size: 1.55rem; font-weight: 700; line-height: 1; color: var(--ink); }
.hw-label { font-size: 9.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); line-height: 1.25; }
.hw-chart { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.hw-bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.hw-b { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #E7E9F0; }
.js .hw-b { animation: barGrow .6s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(.5s + var(--i) * .08s); }
.hw-b.grad { background: #C9EFD7; }
@keyframes barGrow { from { height: 0; } to { height: var(--h); } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: 2; }
}

/* ── Problème stats ──────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 36px 28px 44px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; position: relative; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-ic { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid; display: grid; place-items: center; transition: transform .3s; }
.stat-ic svg { width: 18px; height: 18px; stroke-width: 1.6; }
.stat-card:hover .stat-ic { transform: scale(1.12); }
.stat-num { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stat-txt { font-size: .92rem; color: var(--ink-2); font-weight: 500; margin-top: auto; }
.stat-src { position: absolute; bottom: 16px; font-size: 10px; color: var(--muted); }

/* ── Solution cols ───────────────────────────────────────────── */
.sol-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; }
.sol-col { padding: 16px; margin: -16px; border-radius: var(--r-md); border: 1px solid transparent; transition: border-color .35s, background .35s; }
.sol-col:hover { border-color: var(--line); background: rgba(14,17,22,.02); }

@media (max-width: 820px) {
  .stat-grid, .sol-grid { grid-template-columns: 1fr; }
}

/* ── Le constat : open editorial stat band ───────────────────── */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat-item { padding: 42px 44px 38px 0; position: relative; }
.stat-item + .stat-item { padding-left: 44px; border-left: 1px solid var(--line); }
.stat-item .stat-ic { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid; display: grid; place-items: center; margin-bottom: 26px; transition: transform .3s; }
.stat-item .stat-ic svg { width: 17px; height: 17px; stroke-width: 1.6; }
.stat-item:hover .stat-ic { transform: scale(1.12); }
.stat-band .stat-num { display: block; font-size: clamp(3.2rem, 5.6vw, 4.7rem); font-weight: 800; line-height: .92; letter-spacing: -.03em; }
.stat-band .stat-txt { margin: 22px 0 0; font-size: 1rem; color: var(--ink-2); font-weight: 400; line-height: 1.55; max-width: 30ch; }
.stat-item .stat-src { display: block; position: static; margin-top: 18px; font-size: 11px; color: var(--muted); }
@media (max-width: 820px) {
  .stat-band { grid-template-columns: 1fr; }
  .stat-item { padding: 36px 0; }
  .stat-item + .stat-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ── Solution : open columns with expanding gradient accent ──── */
.sol-open { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.sol-item { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.sol-item::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--ink); transition: width .5s cubic-bezier(.16,1,.3,1), background .5s cubic-bezier(.16,1,.3,1); }
.sol-item:hover::before { width: 100%; background: var(--g3); }
.sol-index { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.sol-item .icon-tile { margin-top: 20px; transition: transform .35s cubic-bezier(.16,1,.3,1), background .5s cubic-bezier(.16,1,.3,1), border-color .5s cubic-bezier(.16,1,.3,1); }
.sol-item:hover .icon-tile { transform: translateY(-3px); background: var(--g3); border-color: var(--g3); }
.sol-item h3 { font-size: 1.18rem; font-weight: 600; margin: 24px 0 0; }
.sol-item p { margin: 12px 0 0; color: var(--ink-2); font-weight: 300; line-height: 1.6; font-size: .96rem; }
@media (max-width: 820px) { .sol-open { grid-template-columns: 1fr; gap: 0; } .sol-item { margin-top: 8px; } }

/* ── Contact ─────────────────────────────────────────────────── */
#contact { scroll-margin-top: 96px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field .req { color: #ef4444; }
.field .opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field textarea { width: 100%; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 16px; font-size: 14px; font-family: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: none; min-height: 84px; line-height: 1.5; overflow-y: hidden; }
.field input::placeholder, .field textarea::placeholder { color: #aab0bb; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14,17,22,.08); }
.input-ic { position: relative; }
.input-ic svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.input-ic input { padding-left: 42px; }
.err { color: #ef4444; font-size: 12px; margin-top: 6px; display: none; }
.field input.invalid { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.1); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-link { background: none; border: 0; cursor: pointer; color: var(--muted); font-family: inherit; transition: color .2s; }
.foot-link:hover { color: var(--ink); }

/* ── Premium segmented switch ────────────────────────────────── */
.switch { position: relative; display: inline-flex; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px; box-shadow: var(--shadow-sm); }
.switch-ind { position: absolute; top: 5px; bottom: 5px; left: 5px; width: 0; border-radius: 999px; background: #111111; box-shadow: 0 4px 14px -4px rgba(14,17,22,.30); transition: left .45s cubic-bezier(.16,1,.3,1), width .45s cubic-bezier(.16,1,.3,1); z-index: 0; }
.no-anim .switch-ind { transition: none; }
.switch-btn { position: relative; z-index: 1; border: 0; background: none; font-family: inherit; font-weight: 600; font-size: 14px; padding: 12px 26px; border-radius: 999px; cursor: pointer; color: var(--ink-2); transition: color .35s ease; white-space: nowrap; }
.switch-btn.active { color: #fff; }
@media (max-width: 560px) { .switch-btn { padding: 11px 16px; font-size: 13px; } }

/* ── Tabs (Avantages) ────────────────────────────────────────── */
.tabs { display: flex; width: fit-content; background: #F1F1F4; padding: 5px; border-radius: 16px; margin: 0 auto 44px; }
.tab-stack { display: grid; }
.tab-btn { border: 0; background: transparent; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 11px 22px; border-radius: 12px; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.tab-btn.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.tab-panel.active { opacity: 1; pointer-events: auto; }
.js .tab-panel.active.replay .adv-item { animation: advIn .4s cubic-bezier(.16,1,.3,1) backwards; }
.js .tab-panel.active.replay .adv-item:nth-child(2){ animation-delay:.08s; }
.js .tab-panel.active.replay .adv-item:nth-child(3){ animation-delay:.16s; }
.js .tab-panel.active.replay .adv-item:nth-child(4){ animation-delay:.24s; }
@keyframes advIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform:none; } }
.adv-item { display: flex; gap: 18px; padding: 14px; margin: -14px; border-radius: 16px; border: 1px solid transparent; transition: border-color .3s, background .3s; }
.adv-item:hover { border-color: var(--line); background: rgba(14,17,22,.02); }
.adv-item h4 { font-size: 1.02rem; font-weight: 600; }
.adv-item p { margin-top: 7px; font-size: .92rem; color: var(--ink-2); font-weight: 300; line-height: 1.6; }
@media (max-width: 720px) { .tab-panel { grid-template-columns: 1fr; } }

/* ── Product tour ────────────────────────────────────────────── */
.tour-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; margin-bottom: 96px; }
.tour-row.reverse .tour-copy { order: 2; }
.tour-row.reverse .tour-media { order: 1; }
.tour-copy .eyebrow { margin-bottom: 16px; }
.tour-copy h3 { font-size: clamp(1.4rem,2.4vw,1.9rem); font-weight: 600; line-height: 1.2; }
.tour-copy p { margin-top: 16px; font-size: 1.02rem; color: var(--ink-2); font-weight: 300; line-height: 1.65; max-width: 30rem; }
.tour-media { position: relative; }
.tour-media .shot-frame { position: relative; z-index: 2; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.tour-media:hover .shot-frame { transform: rotate(0deg) !important; }
.shot-url { margin-left: 8px; font-size: 11px; color: var(--muted); background: #F4F4F6; padding: 4px 12px; border-radius: 999px; font-weight: 500; }
@media (max-width: 860px) {
  .tour-row, .tour-row.reverse { grid-template-columns: 1fr; gap: 40px; }
  .tour-row.reverse .tour-copy { order: 1; }
  .tour-row.reverse .tour-media { order: 2; }
  .tour-media { margin-top: 8px; }
}

/* Module pills */
.module-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mod-pill { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: transform .3s, border-color .3s, color .3s; }
.mod-pill svg { width: 16px; height: 16px; color: var(--ink); }
.mod-pill:hover { transform: translateY(-3px); border-color: rgba(14,17,22,.22); color: var(--ink); }

/* ── Pricing plans ───────────────────────────────────────────── */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column; position: relative; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.plan.featured { border: 0; box-shadow: var(--shadow-lg); z-index: 2; }
.plan.featured::before { content:""; position:absolute; inset:0; border-radius:inherit; padding:2px; background:#111111; -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #111111; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; box-shadow: 0 4px 14px -4px rgba(14,17,22,.30); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.plan-name { font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.plan-tag { color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 6px; }
.plan-price { font-size: 2rem; font-weight: 800; margin-top: 22px; }
.plan-price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan-billed { font-size: 12px; color: var(--ink); font-weight: 600; margin-top: 4px; }
.plan-desc { font-size: 12.5px; color: var(--muted); margin-top: 14px; min-height: 38px; line-height: 1.5; }
.plan .btn { width: 100%; margin-top: 20px; }
.plan-feat-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 14px; }
.plan-list { display: flex; flex-direction: column; gap: 12px; }
.plan-list li { display: flex; gap: 11px; font-size: 13.5px; color: var(--ink-2); font-weight: 300; line-height: 1.45; }
.plan-list li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.plan-note { margin-top: 22px; padding: 16px; background: var(--grad-soft); border: 1px solid var(--line); border-radius: 14px; font-size: 11px; color: var(--ink-2); line-height: 1.55; text-align: center; }
@media (max-width: 1080px) { .plan-grid { grid-template-columns: repeat(2,1fr); } .plan.featured{ transform:none; } }
@media (max-width: 580px) { .plan-grid { grid-template-columns: 1fr; } }

.price-annual { display: none; }
.show-annual .price-monthly { display: none; }
.show-annual .price-annual { display: block; }

/* ── Tables (comparison / packs / actions) ───────────────────── */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.tbl thead th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 18px 22px; background: #F3F4F6; border-bottom: 1px solid var(--line); }
.tbl tbody td { padding: 15px 22px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.center, .tbl th.center { text-align: center; }
.tbl .cell-strong { font-weight: 600; color: var(--ink); }
.tbl .row-section td { background: #F3F4F6; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 11px 22px; }
.tbl .col-pro { background: rgba(14,17,22,.03); }
.tbl thead th.col-pro { color: var(--ink); background: rgba(14,17,22,.05); }
.ico-check { color: var(--accent); }
.ico-check.g { color: #16a34a; }
.ico-check.d { color: var(--ink); }
.ico-minus { color: #cbd0d8; }
.tbl small { color: var(--muted); }
.tag-plan { display: inline-block; background: #F1F1F4; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.tag-plan.pro { background: rgba(14,17,22,.08); color: var(--ink); }
.tag-plan.scale { background: var(--ink); color: #fff; }
.tag-v2 { background: var(--ink); color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 5px; margin-left: 6px; vertical-align: middle; }

/* Credits section (light premium) */
.credits-wrap { background: var(--grad-soft); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px,4vw,56px); position: relative; overflow: hidden; }
.credits-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 28px; max-width: 52rem; margin: 0 auto 40px; }
.credits-info li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 300; line-height: 1.5; }
.credits-info li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 640px) { .credits-info { grid-template-columns: 1fr; } }
.gift-box { margin-top: 24px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.gift-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.gift-box ul { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-2); font-weight: 300; }
.gift-box .em { font-weight: 600; color: var(--ink); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { max-width: 50rem; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; font-size: 1.02rem; font-weight: 500; color: var(--ink); transition: color .2s; }
.faq-q:hover { color: var(--accent); }
.faq-q svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; transition: transform .3s; }
.faq-q.open svg { transform: rotate(180deg); }
.faq-a { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease; }
.faq-a.open { max-height: 600px; opacity: 1; }
.no-anim .faq-a { transition: none !important; }
.faq-a p { padding: 0 4px 24px; font-size: .95rem; color: var(--ink-2); font-weight: 300; line-height: 1.7; }

.legal-notes { max-width: 56rem; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 5px; }
.legal-notes p { font-size: 11px; color: var(--muted); line-height: 1.5; }
.legal-notes a { color: var(--ink-2); text-decoration: underline; }

/* ============================================================
   HERO ORBIT — "Le noyau intelligent" (animated value engine)
   A single wide orbit carries 4 equidistant KPI satellites
   around a gyroscopic "Panier intelligent" nucleus. Roomy,
   legible, premium — fully abstract (no SaaS UI revealed).
   ============================================================ */
.ko-stage {
  position: relative; width: 100%; max-width: 640px; aspect-ratio: 1.16 / 1;
  margin: 0 auto; isolation: isolate; perspective: 1100px;
}
.ko-stage::before {
  content: ""; position: absolute; inset: 6% 2%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--g3) 24%, transparent), transparent 64%);
  filter: blur(30px);
}
.ko-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.ko-lines line { stroke: color-mix(in srgb, var(--g2) 55%, transparent); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 1 8; }

/* ── Nucleus : gyroscopic "Panier intelligent" core ───────────── */
.ko-nucleus { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 50; transform-style: preserve-3d; }
.ko-core-glow {
  position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--g2) 46%, transparent) 0%, color-mix(in srgb, var(--g3) 22%, transparent) 34%, transparent 66%);
  filter: blur(8px); animation: koBreath 7s ease-in-out infinite; z-index: -1;
}

/* gyroscope rings (3D, crossing planes) */
.ko-gyro {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--g2) 34%, transparent);
  transform-style: preserve-3d; pointer-events: none;
}
.ko-gyro.r1 { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation: gyroA 30s linear infinite; }
.ko-gyro.r2 { width: 232px; height: 232px; margin: -116px 0 0 -116px; border-color: color-mix(in srgb, var(--g3) 40%, transparent); animation: gyroB 24s linear infinite; }
.ko-gyro.r3 { width: 366px; height: 366px; margin: -183px 0 0 -183px; border-color: color-mix(in srgb, var(--g1) 22%, transparent); animation: gyroC 40s linear infinite; }
.ko-gyro-node {
  position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--g2)); box-shadow: 0 0 11px 2px color-mix(in srgb, var(--g2) 60%, transparent);
}
.ko-gyro.r2 .ko-gyro-node { background: radial-gradient(circle, #fff, var(--g3)); }

/* central wordmark badge */
.ko-core-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1.18); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 16px 26px; border-radius: 20px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 26px 60px -14px color-mix(in srgb, var(--g2) 42%, transparent), var(--shadow-lg);
  animation: koFloatCore 7s ease-in-out infinite;
}
.ko-core-badge::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; transform: translate(-50%,-50%);
  border-radius: inherit; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--g2) 45%, transparent);
  animation: koCorePulse 3.4s ease-out infinite; pointer-events: none;
}
.ko-core-badge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.ko-core-eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ko-core-name { font-size: 1.26rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.28; padding: 0 .06em; white-space: nowrap; background: var(--grad-title); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ko-core-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-top: 1px; }
.ko-core-sub .ko-livedot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: koLive 2s ease-out infinite; }
.ko-nucleus.flash .ko-core-glow { animation: koFlash 1s ease-out; }

/* ── KPI cards : fixed corners, gentle static float ───────── */
.ko-anchor {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 40;
  will-change: transform;
}
.ko-chip {
  position: absolute; left: 0; top: 0; width: 156px; padding: 13px 15px 14px; border-radius: 16px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(15px) saturate(1.3); -webkit-backdrop-filter: blur(15px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-sm);
  transform: translate(-50%, -50%) scale(.92); opacity: .9;
  animation: koCardFloat var(--fdur, 7s) ease-in-out var(--fdelay, 0s) infinite;
  will-change: transform; pointer-events: none;
}
.ko-chip-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ko-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); border: 1px solid var(--line); flex-shrink: 0; }
.ko-ic svg { width: 17px; height: 17px; }
.ko-trend { font-size: 11px; font-weight: 700; color: #16a34a; background: rgba(34,197,94,.13); padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ko-trend svg { width: 11px; height: 11px; }
.ko-trend.live { color: var(--accent-ink); background: var(--grad-soft); }
.ko-trend.live .ko-livedot { width: 6px; height: 6px; border-radius: 50%; background: var(--g2); box-shadow: 0 0 0 0 color-mix(in srgb, var(--g2) 60%, transparent); animation: koLive 1.8s ease-out infinite; }
.ko-val { font-size: 1.72rem; font-weight: 800; letter-spacing: -.03em; margin-top: 13px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.ko-lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; color: var(--muted); margin-top: 7px; line-height: 1.35; }

.ko-flow { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--g2)); box-shadow: 0 0 12px 2px color-mix(in srgb, var(--g2) 70%, transparent); transform: translate(-50%, -50%); z-index: 49; pointer-events: none; }

.ko-toast {
  position: absolute; left: 50%; top: calc(50% - 188px); display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.93); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-md); font-size: 12.5px; font-weight: 600; color: var(--accent-ink);
  white-space: nowrap; opacity: 0; transform: translate(-50%, 8px); transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
  z-index: 120; pointer-events: none;
}
.ko-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ko-toast .ko-toast-ic { display: inline-grid; place-items: center; color: var(--accent); }
.ko-toast .ko-toast-ic svg { width: 15px; height: 15px; }

@keyframes koBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes koFloat { 0%,100% { transform: translate(-50%,-50%) translateY(0); } 50% { transform: translate(-50%,-50%) translateY(-6px); } }
@keyframes koCardIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes koCardFloat { 0%,100% { transform: translate(-50%,-50%) scale(.92) translateY(0); } 50% { transform: translate(-50%,-50%) scale(.92) translateY(-9px); } }
@keyframes koFloatCore { 0%,100% { transform: translate(-50%,-50%) scale(1.18) translateY(0); } 50% { transform: translate(-50%,-50%) scale(1.18) translateY(-6px); } }
@keyframes koCorePulse { 0% { opacity: .5; transform: translate(-50%,-50%) scale(1); } 70%,100% { opacity: 0; transform: translate(-50%,-50%) scale(1.26); } }
@keyframes koFlash { 0% { opacity: 1; filter: blur(8px); } 45% { opacity: 1; filter: blur(16px) brightness(1.5); } 100% { opacity: 1; filter: blur(8px); } }
@keyframes koLive { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--g2) 55%, transparent); } 70%,100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes gyroA { from { transform: rotateX(72deg) rotateZ(0deg); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes gyroB { from { transform: rotateX(64deg) rotateY(42deg) rotateZ(360deg); } to { transform: rotateX(64deg) rotateY(42deg) rotateZ(0deg); } }
@keyframes gyroC { from { transform: rotateX(78deg) rotateY(-30deg) rotateZ(0deg); } to { transform: rotateX(78deg) rotateY(-30deg) rotateZ(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .ko-core-glow, .ko-core-badge, .ko-gyro, .ko-core-sub .ko-livedot, .ko-trend.live .ko-livedot, .ko-chip { animation: none !important; }
  .ko-anchor { opacity: 1 !important; animation: none !important; }
}

@media (max-width: 880px) { .ko-stage { max-width: 520px; } }
@media (max-width: 480px) { .ko-stage { max-width: 380px; } .ko-chip { width: 138px; padding: 12px 13px; } .ko-val { font-size: 1.4rem; } .ko-core-name { font-size: 1.1rem; } }

/* ============================================================
   RESPONSIVE — refinements mobile / tablette
   ============================================================ */

/* Section hero : réduire le padding-top sur mobile */
@media (max-width: 640px) {
  .hero-sec { padding-top: 108px !important; padding-bottom: 64px !important; }
}

/* Rythme vertical : réduire le padding des sections génériques sur mobile */
@media (max-width: 640px) {
  .section { padding: 44px 0; }
}

/* Formulaire : empiler Prénom / Nom en colonne sur petit écran */
@media (max-width: 500px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Switch segmenté (onglets Produit) : pleine largeur sur mobile */
@media (max-width: 600px) {
  .switch { width: 100%; }
  .switch-btn { flex: 1; text-align: center; white-space: normal; line-height: 1.25; padding: 10px 12px; }
}

/* Tour rows : réduire la marge basse sur tablette / mobile */
@media (max-width: 860px) {
  .tour-row { margin-bottom: 56px; }
}

/* Footer : empiler les liens sur très petits écrans */
@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-inner > div:last-child { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
}
