/* Thème futuriste (fond nuit, lueurs bleues) + motion design — chargé après site.css et motion.css.
   Signature : les barres du logo (un égaliseur vocal) prennent vie derrière le hero. */
:root {
  --ink: #EEF2FB;
  --ink-soft: #B4BED3;
  --ink-dim: #8793AD;
  --paper: #0F1013;
  --paper-2: #15171B;
  --card: #1B1D22;
  --line: rgba(130, 155, 255, 0.16);
  --accent: #6E93FF;        /* bleu du logo éclairci : lisible en texte sur fond nuit */
  --accent-deep: #9DB8FF;
  --accent-soft: rgba(47,107,255, 0.14);
  --electric: #2F6BFF;      /* bleu exact du logo, pour les surfaces */
  --glow: #5CE1FF;
  --bouton: #2559E0;         /* fond des boutons : 5,9:1 avec le texte blanc */
  --gold: #E3B95F;
  --loss: #FF8475;
  --win: #4ADE80;
  --grad: linear-gradient(100deg, #6E93FF 0%, #5CE1FF 100%);
  /* jetons ajoutés depuis la palette claire */
  --bleu-texte: #86A7FF;
  --vert: #4ADE80; --rouge: #FF8475; --or: #E3B95F;
  --vert-halo: rgba(74,222,128,0.2);
  --or-soft: rgba(227,185,95,0.14);
}
html { color-scheme: dark; }
body { background: var(--paper); }
::selection { background: var(--electric); color: #fff; }

/* ---------- Décor fixe : aurores + grille ---------- */
.fx-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx-bg::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%); }
.fx-aurora { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.fx-aurora.a1 { top: -30vmax; left: -15vmax; background: radial-gradient(circle, rgba(47,107,255,0.30), transparent 62%); animation: drift1 26s ease-in-out infinite alternate; }
.fx-aurora.a2 { bottom: -38vmax; right: -20vmax; background: radial-gradient(circle, rgba(92,225,255,0.16), transparent 60%); animation: drift2 32s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(22vmax, 12vmax, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-18vmax, -14vmax, 0) scale(1.2); } }

/* Barre de progression de lecture */
.fx-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 14px rgba(92,225,255,0.7); pointer-events: none; }

/* ---------- Égaliseur du hero (les barres du logo) ---------- */
.hero, .svc-hero { position: relative; overflow: hidden; isolation: isolate; }
.fx-bars { position: absolute; inset: auto 0 0 0; height: 78%; z-index: -1; display: flex; align-items: center; justify-content: center; gap: 8px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.55) 45%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.55) 45%, transparent 100%);
  transform: translate3d(0, var(--par, 0px), 0); }
.svc-hero .fx-bars { height: 100%; opacity: 0.32; } /* derrière le texte : discret pour rester lisible */
.fx-bars span { flex: none; width: 6px; height: var(--h); transform-origin: 50% 50%; animation: eq var(--d) ease-in-out var(--dl) infinite alternate; }
.fx-bars i { display: block; width: 100%; height: 100%; border-radius: 3px; background: rgba(47,107,255,0.42); transition: transform 0.35s var(--t); }
.fx-bars span:nth-child(3n) i { background: rgba(190,205,255,0.22); }
.fx-bars span:nth-child(7n) i { background: rgba(92,225,255,0.40); box-shadow: 0 0 12px rgba(92,225,255,0.45); }
@keyframes eq { from { transform: scaleY(0.28); } to { transform: scaleY(1); } }

/* ---------- Typo & titres ---------- */
.hero h1 { text-shadow: 0 0 60px rgba(47,107,255,0.35); }
.hero h1 em:not(:has(.wi)), .hero h1 em .wi, .svc-hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--glow); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); box-shadow: 0 0 8px var(--glow); }
.shead.center .eyebrow { justify-content: center; }

/* Titre du hero : les mots montent un à un */
.split.reveal { opacity: 1; transform: none; filter: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.split .wi { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: 0 100%; transition: transform 0.9s var(--t); transition-delay: calc(var(--w) * 55ms + 0.15s); }
.split.in .wi { transform: none; }

/* Apparition au défilement : plus ample */
.js .reveal { opacity: 0; transform: translateY(36px) scale(0.98); filter: blur(8px); transition: opacity 0.8s var(--t), transform 0.8s var(--t), filter 0.8s var(--t); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Navigation ---------- */
nav.top.scrolled { background: rgba(15,16,19,0.74); border-bottom-color: var(--line); }
.nav-dd-menu { box-shadow: 0 24px 50px -20px rgba(0,0,0,0.8), 0 0 0 1px var(--line); }

/* ---------- Boutons ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; opacity: 1; box-shadow: none; transition: none; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); transition: transform 0.7s var(--t); }
.btn-primary { background: linear-gradient(100deg, #2F6BFF, #2F8CFF 60%, #25B5E8); color: #fff; box-shadow: 0 0 0 1px rgba(140,170,255,0.35) inset, 0 12px 40px -10px rgba(47,107,255,0.75); }
.btn-primary:hover { background: linear-gradient(100deg, #4A80FF, #3597FF 60%, #33C2F2); box-shadow: 0 0 0 1px rgba(170,195,255,0.5) inset, 0 18px 50px -8px rgba(47,107,255,0.95); }
.btn-accent { background: var(--bouton); box-shadow: 0 0 24px -4px rgba(47,107,255,0.8); }
.btn-accent:hover { background: var(--electric); box-shadow: 0 0 34px -2px rgba(47,107,255,1); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: 0 0 24px -8px rgba(110,147,255,0.9); }
.btn:focus-visible { outline-color: var(--glow); }
.skip { background: var(--electric); color: #fff; }

/* ---------- Cartes : halo qui suit le curseur ---------- */
.agent, .roi-card, .faq-item, .svc-ps > div, .svc-dia, .hero-edito, .diagram, .svc-others li a { position: relative; background: linear-gradient(180deg, rgba(34,37,43,0.94), rgba(22,24,28,0.94)); border-color: var(--line); }
.agent::before, .roi-card::before, .svc-ps > div::before, .hero-edito::before, .diagram::before, .svc-others li a::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(92,225,255,0.14), transparent 60%); }
.agent:hover::before, .roi-card:hover::before, .svc-ps > div:hover::before, .hero-edito:hover::before, .diagram:hover::before, .svc-others li a:hover::before { opacity: 1; }
.agent > *, .roi-card > *, .svc-ps > div > *, .hero-edito > *, .diagram > * { position: relative; }
.agent:hover { border-color: rgba(110,147,255,0.5); box-shadow: 0 30px 70px -30px rgba(47,107,255,0.55); }
.agents, .rentab, .svc-others { background: rgba(255,255,255,0.018); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agent .tag.gold, .svc-hero .tag.gold { background: rgba(227,185,95,0.14); }

/* Carte « en direct » du hero : flotte, bord lumineux, lignes qui arrivent */
.hero-edito { box-shadow: 0 0 0 1px rgba(110,147,255,0.25), 0 40px 90px -30px rgba(47,107,255,0.6); animation: entre 0.6s var(--t) 0.28s both, float 6s ease-in-out 1s infinite alternate; }
@keyframes float { to { transform: translateY(-12px); } }
.edito-feed li { background: rgba(255,255,255,0.03); opacity: 0; transform: translateX(26px); animation: feed 0.8s var(--t) forwards; }
.edito-feed li:nth-child(1) { animation-delay: 0.7s; } .edito-feed li:nth-child(2) { animation-delay: 1.0s; }
.edito-feed li:nth-child(3) { animation-delay: 1.3s; } .edito-feed li:nth-child(4) { animation-delay: 1.6s; }
@keyframes feed { to { opacity: 1; transform: none; } }
.edito-live i, .hero .badge .dot { animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { box-shadow: 0 0 0 0 rgba(31,174,106,0.6); } to { box-shadow: 0 0 0 10px rgba(31,174,106,0); } }
.hero .badge { background: rgba(255,255,255,0.04); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-proof .pv { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Blocs existants repris en sombre ---------- */
.def, .roi-bottom { background: linear-gradient(90deg, rgba(47,107,255,0.16), rgba(47,107,255,0.04)); border-left-color: var(--glow); }
.vs-box, .flow-node { background: rgba(255,255,255,0.03); }
.vs-box.good { background: linear-gradient(180deg, rgba(47,107,255,0.20), rgba(47,107,255,0.05)); border-color: rgba(110,147,255,0.55); box-shadow: 0 0 40px -14px rgba(47,107,255,0.9); }
.vs-box li .x { color: #6B7690; }
.flow-node .fi, .pillar .pico, .ef-ic { box-shadow: 0 0 22px -6px rgba(47,107,255,0.9); }
.flow-sep svg, .vs-arrow svg { animation: nudge 1.6s ease-in-out infinite alternate; }
.flow-sep:nth-of-type(4) svg { animation-delay: 0.5s; }
@keyframes nudge { from { transform: translateX(-5px); opacity: 0.45; } to { transform: translateX(5px); opacity: 1; } }
.roi-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(47,107,255,0.5)); }
.roi-num span { -webkit-text-fill-color: var(--ink-dim); }
.ba-before { background: rgba(255,255,255,0.025); }
.ba-after { background: linear-gradient(180deg, rgba(47,107,255,0.18), rgba(47,107,255,0.06)); border-color: rgba(110,147,255,0.45); }
.portrait img { filter: grayscale(1) contrast(1.05) brightness(0.95); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(47,107,255,0.7); }
.social { background: rgba(255,255,255,0.03); }
.about-text .meta span { background: rgba(255,255,255,0.03); }
.demo-panel { background: rgba(255,255,255,0.04); }
.faq-item[open] { border-color: rgba(110,147,255,0.5); box-shadow: 0 0 40px -18px rgba(47,107,255,0.9); }
.faq-item summary::after { transition: transform 0.3s var(--t); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.todo { background: #3A2E0C; color: #FFE08A; }
footer { background: #0A0B0D; }

/* ---------- Appel à l'action : ondes d'appel ---------- */
.cta { background: radial-gradient(ellipse 80% 90% at 50% 100%, rgba(47,107,255,0.28), transparent 70%), #0A0B0D; border-top: 1px solid var(--line); isolation: isolate; }
.cta::after { display: none; }
.cta .eyebrow { color: var(--glow); }
.fx-ring { position: absolute; left: 50%; top: 50%; width: 46vmin; height: 46vmin; margin: -23vmin 0 0 -23vmin; border-radius: 50%; border: 1px solid rgba(110,147,255,0.55); z-index: -1; opacity: 0; animation: ring 5.4s linear infinite; pointer-events: none; }
.fx-ring:nth-of-type(2) { animation-delay: 1.8s; } .fx-ring:nth-of-type(3) { animation-delay: 3.6s; }
@keyframes ring { from { transform: scale(0.35); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }

@media (max-width: 720px) {
  .fx-bars { gap: 6px; height: 60%; opacity: 0.7; }
  .hero-edito { animation: entre 0.6s var(--t) 0.28s both; }
  .js .reveal { filter: none; transform: translateY(24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .split .wi, .edito-feed li { opacity: 1; transform: none; filter: none; }
  .fx-ring { display: none; }
  .fx-bars span { transform: scaleY(0.7); }
}

/* ---------- Raccords : éléments ajoutés depuis (onde, vidéo, schémas, navigation) ---------- */
nav.top::before { background: rgba(15,16,19,0.74); border-bottom-color: var(--line); }
.voix { height: 64px; }
.voix i { background: var(--electric); box-shadow: 0 0 10px rgba(47,107,255,0.7); }
.voix i.n { background: #EEF2FB; box-shadow: 0 0 10px rgba(238,242,251,0.35); }
.voix i:nth-child(5n) { background: var(--glow); box-shadow: 0 0 12px rgba(92,225,255,0.7); }
.agent-dia, .agent-dia text { --accent: #6E93FF; }
.flow-node .fi, .pillar .pico, .ef-ic, .vs-arrow, .flow-sep { color: var(--glow); }
.def, .roi-bottom { border-left-color: var(--glow); }
.roi-steps li::before { background: var(--glow); box-shadow: 0 0 8px var(--glow); }
.cta .btn-accent { background: var(--bouton); color: #fff; box-shadow: 0 0 34px -4px rgba(47,107,255,1); }
.cta .btn-accent:hover { background: var(--electric); }
.edito-live, .hero-proof .pl.tagline { color: var(--glow); }
.edito-live i, .hero .badge .dot { background: var(--win); }
::selection { background: var(--electric); color: #fff; }

/* Vidéo : cadre lumineux, bouton de lecture mis en avant */
.demo-video video { box-shadow: 0 0 0 1px rgba(110,147,255,0.35), 0 40px 90px -30px rgba(47,107,255,0.7); background: #0A0B0D; }
.video-modal { background: linear-gradient(180deg, rgba(34,37,43,0.98), rgba(18,19,23,0.98)); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 0 80px -10px rgba(47,107,255,0.6); }
.video-modal::backdrop { background: rgba(6,7,9,0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-close { background: rgba(255,255,255,0.04); color: var(--ink); border-color: var(--line); }
#video-open { border-color: rgba(110,147,255,0.55); box-shadow: 0 0 26px -8px rgba(47,107,255,0.9); }
#video-open .ic { color: var(--glow); }

/* Schémas : le trait d'union entre les étapes s'allume quand il apparaît */
.js .agent-dia .dia-step, .js .agent-dia .dia-loss { transition: opacity 0.45s ease-out, filter 0.9s ease-out; transition-delay: calc(var(--i) * 110ms); filter: drop-shadow(0 0 10px rgba(92,225,255,0.9)); }
.js .agent-dia.in .dia-step, .js .agent-dia.in .dia-loss { filter: none; }

/* Titres de section : trait lumineux qui se déploie */
.shead h2 { position: relative; padding-bottom: 0.9rem; }
.shead h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 84px; height: 2px; background: var(--grad); box-shadow: 0 0 12px var(--glow); transform: scaleX(1); transform-origin: 0 50%; transition: transform 0.9s var(--t) 0.25s; }
.shead.center h2::after { left: 50%; margin-left: -42px; transform-origin: 50% 50%; }
.js .shead.reveal:not(.in) h2::after { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  .shead h2::after { transform: scaleX(1); }
  .js .agent-dia .dia-step, .js .agent-dia .dia-loss { filter: none; }
}
