/* =====================================================================
   SubScale · couleur d'accent et mouvement (26/11/2026), chargé APRÈS stylepro.css.
   Purement visuel : aucune fonction, aucun id, aucune classe de l'appli changés (le JS de public/motion.js ajoute
   seulement des classes mo-* et des petites icônes aria-hidden).
   - La couleur d'accent au choix (Vert, Bleu, Violet) : <html data-acc>, posée par public/theme.js avant l'affichage.
     Toujours active (même sans mouvement). Le bouton principal reste à l'encre.
   - Le mouvement : seulement sous <html data-motion="full"> (Normales). « calm » (Réduites, ou l'ordinateur qui demande
     de réduire les animations) : rien ne bouge. Sans attribut (navigateur piloté, tests) : rien de nouveau.
   - Spécificité : même astuce que stylepro (:is(#gs,*)) + :not(#mo-z) pour passer devant.
   ===================================================================== */

/* ---------- jetons ---------- */
:root:root:root {
  --acc: #6FCB98; --acc-2: #2FB7A0; --acc-text: #7AD3A2; --acc-text-2: #5CC9B5; --acc-fill: #6FCB98; --acc-ink: #0B1F15;
  --acc-soft: rgba(111, 203, 152, .14); --acc-line: rgba(111, 203, 152, .38);
  --c1: #6FCB98; --c2: #B49CFF; --c3: #E8B465; --c4: #6EA0FF; --c5: #F08AA6; --c6: #5FD0E0;
  --mo-spring: cubic-bezier(.3, 1.3, .4, 1); --mo-out: cubic-bezier(.2, .8, .2, 1); --mo-pop: cubic-bezier(.3, 1.7, .5, 1);
}
:root:root:root[data-acc="bleu"] {
  --acc: #6EA0FF; --acc-2: #5468FF; --acc-text: #8CB2FF; --acc-text-2: #9AA2FF; --acc-fill: #6EA0FF; --acc-ink: #0A1430;
  --acc-soft: rgba(110, 160, 255, .15); --acc-line: rgba(110, 160, 255, .42);
  --pro-sig: radial-gradient(70% 60% at 96% 100%, #9DC2FF 0%, rgba(157, 194, 255, 0) 70%), radial-gradient(90% 80% at 10% 0%, #0E1F4A 0%, rgba(14, 31, 74, 0) 60%), linear-gradient(140deg, #0E1F4A 0%, #1C3C8C 45%, #3460D6 80%, #6E8DF0 100%);
}
:root:root:root[data-acc="violet"] {
  --acc: #B49CFF; --acc-2: #8A63F5; --acc-text: #BEA9FF; --acc-text-2: #A98BFF; --acc-fill: #B49CFF; --acc-ink: #1A1033;
  --acc-soft: rgba(180, 156, 255, .15); --acc-line: rgba(180, 156, 255, .42);
  --pro-sig: radial-gradient(70% 60% at 96% 100%, #D9C8FF 0%, rgba(217, 200, 255, 0) 70%), radial-gradient(90% 80% at 10% 0%, #241245 0%, rgba(36, 18, 69, 0) 60%), linear-gradient(140deg, #241245 0%, #45228A 45%, #6E45D8 80%, #A98BF0 100%);
}
:root:root:root[data-theme="light"] {
  --acc: #1E9A68; --acc-2: #0E8C7A; --acc-text: #137A52; --acc-text-2: #0E7C6C; --acc-fill: #137A52; --acc-ink: #FFFFFF;
  --acc-soft: rgba(30, 154, 104, .11); --acc-line: rgba(30, 154, 104, .34);
  --c1: #1E9A68; --c2: #7C5CE0; --c3: #B9791B; --c4: #2F6BE0; --c5: #D0466F; --c6: #14899B;
}
:root:root:root[data-theme="light"][data-acc="bleu"] { --acc: #2F6BE0; --acc-2: #4F46E5; --acc-text: #2A5FD0; --acc-text-2: #4338CA; --acc-fill: #2A5FD0; --acc-soft: rgba(47, 107, 224, .1); --acc-line: rgba(47, 107, 224, .34); }
:root:root:root[data-theme="light"][data-acc="violet"] { --acc: #7C5CE0; --acc-2: #9333EA; --acc-text: #6D4CD6; --acc-text-2: #7E22CE; --acc-fill: #6D4CD6; --acc-soft: rgba(124, 92, 224, .1); --acc-line: rgba(124, 92, 224, .34); }
@property --mo-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---------- la couleur d'accent dans l'appli (toujours) ---------- */
html body :is(#gs, .app) ::selection { background: color-mix(in srgb, var(--acc) 32%, transparent); }
html body :is(#gs, .app) :is(button, a, [role="tab"], [role="radio"]):focus-visible:is(#gs,*):not(#mo-z) { outline: 2px solid color-mix(in srgb, var(--acc) 85%, transparent) !important; outline-offset: 2px !important; }
/* menu : icône de l'entrée ouverte, compteur des messages non lus, symbole de SubScale IA */
html body :is(#gs, .app) .side .nav > [data-view]:is([aria-current="page"], .active, .on) > svg:is(#gs,*):not(#mo-z),
html body :is(#gs, .app) .side .nav > .nav-sec[aria-expanded="true"] > svg:is(#gs,*):not(#mo-z) { color: var(--acc) !important; stroke: var(--acc) !important; }
html body :is(#gs, .app) .side .nav [data-view="inbox"] .count:is(#gs,*):not(#mo-z) { background: var(--acc-fill) !important; color: var(--acc-ink) !important; }
html body :is(#gs, .app) .side .nav :is(button, a) svg:is(#gs,*):not(#mo-z) { --vai-a: var(--acc); }
html body :is(#gs, .app) .side-foot #me-avatar:is(#gs,*):not(#mo-z) { background: var(--acc-soft) !important; color: var(--acc-text) !important; box-shadow: inset 0 0 0 1px var(--acc-line) !important; }
/* onglets de page : le soulignement de l'onglet ouvert à la couleur d'accent */
html body :is(#gs, .app) :is(.vtabs, .al-tabs) > button[aria-selected="true"]:is(#gs,*):not(#mo-z) { box-shadow: inset 0 -2px 0 var(--acc) !important; }
/* notifications : le point de couleur */
html body .toasts .toast:not(.bad) .ti:not(#mo-z) { background: var(--acc) !important; }
/* SubScale IA : le carré du bas à la couleur d'accent (l'erreur reste rouge, la version « mono » reste neutre) */
html body .vav.vav-ss:not(.mono):not([data-state="error"]) .vav-sq1:is(#gs,*):not(#mo-z) { fill: var(--acc); }
/* graphiques : courbe, aire et barres à la couleur d'accent ; la période d'avant reste grise */
html body :is(#gs, .app) .vch:is(#gs,*):not(#mo-z) { --vch-c: var(--acc) !important; }
html body :is(#gs, .app) .vch .vch-line:is(#gs,*):not(#mo-z) { stroke: var(--acc) !important; stroke-width: 2 !important; }
html body .vch .vch-g1:not(#mo-z) { stop-color: var(--acc) !important; stop-opacity: .26 !important; }
html body .vch .vch-g2:not(#mo-z) { stop-color: var(--acc) !important; stop-opacity: 0 !important; }
:root[data-theme="light"] body .vch .vch-g1:not(#mo-z) { stop-opacity: .16 !important; }
/* tableau de bord : le total en dégradé d'accent, une icône ronde teintée par chiffre, petites courbes de la même teinte */
html body :is(#gs, .app) #dbx .dbx5-hero > b:is(#gs,*):not(#mo-z) { background: linear-gradient(90deg, var(--acc-text), var(--acc-text-2)) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent; }
html body :is(#gs, .app) #dbx .dbx5-k:is(#gs,*):not(#mo-z) { position: relative !important; }
html body :is(#gs, .app) #dbx .dbx5-k:is(#gs,*):not(#mo-z) { --c: var(--acc); }
html body :is(#gs, .app) #dbx .dbx5-k[data-k="buy"]:is(#gs,*):not(#mo-z) { --c: var(--c3); }
html body :is(#gs, .app) #dbx .dbx5-k[data-k="basket"]:is(#gs,*):not(#mo-z) { --c: var(--c6); }
html body :is(#gs, .app) #dbx .dbx5-k[data-k="fee"]:is(#gs,*):not(#mo-z) { --c: var(--c5); }
html body :is(#gs, .app) #dbx .dbx5-k .dbx4-spark .l:is(#gs,*):not(#mo-z) { stroke: var(--c) !important; opacity: .9; }
html body :is(#gs, .app) #dbx .dbx5-k .dbx4-spark .a:is(#gs,*):not(#mo-z) { display: block !important; fill: color-mix(in srgb, var(--c) 12%, transparent) !important; }
.mo-tico { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--c, var(--acc)); background: color-mix(in srgb, var(--c, var(--acc)) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--acc)) 26%, transparent); pointer-events: none; }
.mo-tico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .mo-tico { width: 28px; height: 28px; top: 10px; right: 10px; } .mo-tico svg { width: 14px; height: 14px; } }
html body :is(#gs, .app) #dbx .dbx4-acts > :nth-child(1) .dbx4-ico:is(#gs,*):not(#mo-z) { --c: var(--c4); }
html body :is(#gs, .app) #dbx .dbx4-acts > :nth-child(2) .dbx4-ico:is(#gs,*):not(#mo-z) { --c: var(--c1); }
html body :is(#gs, .app) #dbx .dbx4-acts > :nth-child(3) .dbx4-ico:is(#gs,*):not(#mo-z) { --c: var(--c2); }
html body :is(#gs, .app) #dbx .dbx4-acts > :nth-child(4) .dbx4-ico:is(#gs,*):not(#mo-z) { --c: var(--c6); }
html body :is(#gs, .app) #dbx .dbx4-acts .dbx4-ico:is(#gs,*):not(#mo-z) { color: var(--c) !important; background: color-mix(in srgb, var(--c) 14%, transparent) !important; border-color: color-mix(in srgb, var(--c) 26%, transparent) !important; border-radius: 50% !important; }
html body :is(#gs, .app) #dbx .dbx4-acts .dbx4-ico svg:is(#gs,*):not(#mo-z) { stroke: currentColor !important; color: currentColor !important; }
/* barres de répartition (Par créatrice, chatters, fans) : le rail discret, la part à la couleur d'accent */
html body :is(#gs, .app) #dbx .dbx4-bar:is(#gs,*):not(#mo-z) { background: color-mix(in srgb, var(--fg) 9%, transparent) !important; overflow: hidden; }
html body :is(#gs, .app) #dbx .dbx4-bar:is(#gs,*):not(#mo-z)::after { background: linear-gradient(90deg, var(--acc-2), var(--acc)) !important; }
html body :is(#gs, .app) #dbx .dbx4-rank > li.mu .dbx4-bar:is(#gs,*):not(#mo-z)::after { background: var(--muted-2) !important; }
/* la créatrice / l'espace : l'avatar à la signature de la couleur choisie (--pro-sig suit data-acc) */

/* ---------- bouton soleil / lune (en haut du menu) ---------- */
html body :is(#gs, .app) .side .brand-row .mo-thm:is(#gs,*) { margin-left: auto; position: relative; flex: none; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
html body :is(#gs, .app) .side .brand-row .mo-thm:hover:is(#gs,*) { background: var(--surface-2); color: var(--fg); }
html body :is(#gs, .app) .side .brand-row .mo-thm + .side-collapse:is(#gs,*) { margin-left: 0 !important; }
html body .mo-thm svg { position: absolute; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--mo-pop), opacity .3s ease; }
html body .mo-thm .mo-sun { opacity: 0; transform: rotate(-100deg) scale(.4); }
:root[data-theme="light"] body .mo-thm .mo-sun { opacity: 1; transform: none; }
:root[data-theme="light"] body .mo-thm .mo-moon { opacity: 0; transform: rotate(100deg) scale(.4); }
html body.side-mini .side .brand-row .mo-thm:not(#mo-z) { display: none !important; }

/* ---------- choix de la couleur (menu du compte et Paramètres > Apparence) ---------- */
html body .acc-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html body :is(#gs, .app, body) .acc-sw:is(#gs,*):not(#mo-z) { background: none !important; box-shadow: none !important; }
html body .acc-sw { --sw1: #6FCB98; --sw2: #2FB7A0; display: inline-flex; align-items: center; gap: 9px; min-height: 30px; padding: 2px 4px 2px 2px; border: 0; border-radius: 999px; background: none; color: var(--fg); font: 500 13px/1.2 Inter, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
html body .acc-sw[data-acc="bleu"] { --sw1: #6EA0FF; --sw2: #5468FF; }
html body .acc-sw[data-acc="violet"] { --sw1: #B49CFF; --sw2: #8A63F5; }
:root[data-theme="light"] body .acc-sw { --sw1: #1E9A68; --sw2: #0E8C7A; }
:root[data-theme="light"] body .acc-sw[data-acc="bleu"] { --sw1: #2F6BE0; --sw2: #4F46E5; }
:root[data-theme="light"] body .acc-sw[data-acc="violet"] { --sw1: #7C5CE0; --sw2: #9333EA; }
html body .acc-sw .acc-dot { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--sw1), var(--sw2)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .35s var(--mo-pop); }
html body .acc-sw .acc-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--sw1); opacity: 0; transform: scale(.7); transition: opacity .25s ease, transform .4s var(--mo-pop); }
html body .acc-sw[aria-checked="true"] .acc-dot::after { opacity: 1; transform: none; }
html body .acc-sw .acc-dot svg { width: 12px; height: 12px; fill: none; stroke: #0D0D0C; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.3); transition: opacity .2s ease, transform .4s var(--mo-pop); }
:root[data-theme="light"] body .acc-sw .acc-dot svg { stroke: #fff; }
html body .acc-sw[aria-checked="true"] .acc-dot svg { opacity: 1; transform: none; }
html body .acc-sw:hover .acc-dot { transform: scale(1.1); }
html body .acc-sw .acc-l { color: var(--fg); }
html body .acc-sw[aria-checked="true"] .acc-l { font-weight: 600; }
html body .um-theme .theme-pick .acc-t { display: block; margin: 10px 0 6px; }
html body .um-theme .acc-pick { padding: 2px 4px 2px 6px; gap: 14px; }
html body .ap-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; max-width: 720px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
html body .ap-row .ap-l { min-width: 0; flex: 1 1 260px; }
html body .ap-row .ap-l b { display: block; font: 600 14px/1.3 Inter, sans-serif; color: var(--fg); }
html body .ap-row .ap-l small { display: block; margin-top: 2px; font: 400 12.5px/1.4 Inter, sans-serif; color: var(--muted); }
html body .ap-row .acc-pick.big { gap: 18px; }
html body .ap-row .mo-modes { flex: none; display: inline-flex; }

/* ---------- logo (les deux carrés, posés par motion.js à la place de l'image) ---------- */
html body .logo.mo-logo:not(#mo-z) { background-image: none !important; }
html body .logo.mo-logo .mo-mk { width: 78%; height: 78%; overflow: visible; fill: #FAFAF8; }
:root[data-theme="light"] body .logo.mo-logo .mo-mk:not(#mo-z) { fill: #0E0E0D; }
:root body :is(#web-gate, .lock-pitch) .logo.mo-logo .mo-mk:not(#mo-z) { fill: #FAFAF8; }
html body .logo.mo-logo .mo-mk rect { transform-box: fill-box; transform-origin: center; }
html body .side .nav .mo-vai rect { transform-box: fill-box; transform-origin: center; }

/* ---------- menu : la pastille de l'entrée ouverte (motion.js : .mo-g sur la navigation) ---------- */
html body :is(#gs, .app) .side .nav.mo-g:is(#gs,*):not(#mo-z) { position: relative !important; }
html body :is(#gs, .app) .side .nav.mo-g > :is(button, a):is(#gs,*):not(#mo-z) { position: relative; z-index: 1; }
html body :is(#gs, .app) .side .nav.mo-g:is(#gs,*):not(#mo-z)::before { content: ""; position: absolute; left: 0; top: 0; width: var(--ni-w, 0px); height: var(--ni-h, 0px); transform: translate(var(--ni-x, 0px), var(--ni-y, 0px)); border-radius: 8px; background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--line), var(--pro-sh1); opacity: var(--ni-o, 0); pointer-events: none; z-index: 0; display: block !important; }
html body :is(#gs, .app) .side .nav.mo-g:is(#gs,*):not(#mo-z)::after { content: ""; position: absolute; left: 0; top: 0; width: 2.5px; height: max(0px, calc(var(--ni-h, 0px) - 16px)); transform: translate(var(--ni-x, 0px), calc(var(--ni-y, 0px) + 8px)); border-radius: 3px; background: linear-gradient(var(--acc), var(--acc-2)); box-shadow: 0 0 10px color-mix(in srgb, var(--acc) 70%, transparent); opacity: var(--ni-o, 0); pointer-events: none; z-index: 2; display: block !important; }
html body :is(#gs, .app) .side .nav.mo-g > [data-view]:not(.nav-sub):is([aria-current="page"], .active, .on):is(#gs,*):not(#mo-z) { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
html body :is(#gs, .app) .side .nav.mo-g > .nav-sub:is([aria-current="page"], .active, .on):is(#gs,*):not(#mo-z) { background: transparent !important; box-shadow: none !important; }
@media (min-width: 761px) {
  html body:not(.side-mini) :is(#gs, .app) .side .nav.mo-g > .nav-sub:is([aria-current="page"], .active, .on):is(#gs,*):not(#mo-z) { border-left-color: transparent !important; }
}
html body :is(#gs, .app) .side .nav.mo-g > .nav-sub.sec-open[aria-current="page"]:is(#gs,*):not(#mo-z)::before { display: none !important; }

/* =====================================================================
   MOUVEMENT (Normales seulement)
   ===================================================================== */
@keyframes mo-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes mo-fade { from { opacity: 0; } }
@keyframes mo-pop-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@keyframes mo-pop-up { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes mo-modal { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes mo-sheet { from { transform: translateY(48px); opacity: .4; } }
@keyframes mo-toast { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes mo-tbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes mo-rip { to { transform: scale(4); opacity: 0; } }
@keyframes mo-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mo-grow { from { transform: scaleY(0); } }
@keyframes mo-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes mo-sub { from { opacity: 0; transform: translateX(-8px); } }
@keyframes mo-mkA { from { opacity: 0; transform: translate(-34px, 34px) rotate(-90deg); } }
@keyframes mo-mkB { from { opacity: 0; transform: translate(34px, -34px) rotate(90deg); } }
@keyframes mo-hopA { 40% { transform: translate(-7px, 7px); } }
@keyframes mo-hopB { 40% { transform: translate(7px, -7px); } }
@keyframes mo-brA { 50% { transform: translate(-3px, 3px); } }
@keyframes mo-brB { 50% { transform: translate(3px, -3px); } }
@keyframes mo-stA { 0%, 10% { transform: translate(0, 0) rotate(0); } 25%, 35% { transform: translate(46px, 0) rotate(90deg); } 50%, 60% { transform: translate(46px, -46px) rotate(180deg); } 75%, 85% { transform: translate(0, -46px) rotate(270deg); } 100% { transform: translate(0, 0) rotate(360deg); } }
@keyframes mo-stB { 0%, 10% { transform: translate(0, 0) rotate(0); } 25%, 35% { transform: translate(-46px, 0) rotate(90deg); } 50%, 60% { transform: translate(-46px, 46px) rotate(180deg); } 75%, 85% { transform: translate(0, 46px) rotate(270deg); } 100% { transform: translate(0, 0) rotate(360deg); } }
@keyframes mo-vstA { 0%, 10% { transform: translate(0, 0) rotate(0); } 25%, 35% { transform: translate(19px, 0) rotate(90deg); } 50%, 60% { transform: translate(19px, -19px) rotate(180deg); } 75%, 85% { transform: translate(0, -19px) rotate(270deg); } 100% { transform: translate(0, 0) rotate(360deg); } }
@keyframes mo-vstB { 0%, 10% { transform: translate(0, 0) rotate(0); } 25%, 35% { transform: translate(-19px, 0) rotate(90deg); } 50%, 60% { transform: translate(-19px, 19px) rotate(180deg); } 75%, 85% { transform: translate(0, 19px) rotate(270deg); } 100% { transform: translate(0, 0) rotate(360deg); } }
@keyframes mo-dn { 0% { transform: scale(.6); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes mo-ang { to { --mo-ang: 360deg; } }
@keyframes mo-shim { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes mo-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes mo-float { 50% { translate: 0 -5px; } }
@keyframes mo-blink { 0%, 90%, 100% { scale: 1 1; } 94% { scale: 1 .15; } }
@keyframes mo-drift { 0% { transform: translate(-4%, -3%) rotate(0deg) scale(1.08); } 100% { transform: translate(4%, 3%) rotate(6deg) scale(1.16); } }

/* menu : la pastille glisse, l'icône bouge au survol, les rubriques arrivent en cascade (motion.js) */
html[data-motion="full"] body :is(#gs, .app) .side .nav.mo-g:is(#gs,*):not(#mo-z)::before { transition: transform .5s var(--mo-spring), width .4s var(--mo-out), height .35s var(--mo-out), opacity .2s ease; }
html[data-motion="full"] body :is(#gs, .app) .side .nav.mo-g:is(#gs,*):not(#mo-z)::after { transition: transform .5s var(--mo-spring), height .35s var(--mo-out), opacity .2s ease; }
html body :is(#gs, .app) .side .nav.mo-g.mo-ni:is(#gs,*):not(#mo-z)::before, html body :is(#gs, .app) .side .nav.mo-g.mo-ni:is(#gs,*):not(#mo-z)::after { transition: none !important; }
html[data-motion="full"] body :is(#gs, .app) .side .nav > :is(button, a) > svg:is(#gs,*):not(#mo-z) { transition: transform .45s var(--mo-pop), color .25s ease; }
@media (hover: hover) {
  html[data-motion="full"] body :is(#gs, .app) .side .nav > :is(button, a):hover > svg:is(#gs,*):not(#mo-z) { transform: translateX(1px) scale(1.1) rotate(-6deg); }
  html[data-motion="full"] body :is(#gs, .app) .side .nav > :is(button, a):hover > svg.mo-vai:is(#gs,*):not(#mo-z) { transform: none; }
  html[data-motion="full"] body .side .nav > :is(button, a):hover > svg.mo-vai .mo-va { animation: mo-vstA 2.4s cubic-bezier(.75, 0, .25, 1) infinite; }
  html[data-motion="full"] body .side .nav > :is(button, a):hover > svg.mo-vai .mo-vb { animation: mo-vstB 2.4s cubic-bezier(.75, 0, .25, 1) infinite; }
  html[data-motion="full"] body .brand:hover .logo.mo-logo .mo-a { animation: mo-hopA .7s var(--mo-pop); }
  html[data-motion="full"] body .brand:hover .logo.mo-logo .mo-b { animation: mo-hopB .7s .08s var(--mo-pop); }
}
html[data-motion="full"] body .logo.mo-logo.mo-in .mo-a { animation: mo-mkA .95s var(--mo-pop) .1s backwards; }
html[data-motion="full"] body .logo.mo-logo.mo-in .mo-b { animation: mo-mkB .95s var(--mo-pop) .26s backwards; }
html[data-motion="full"] body .side .brand .wm.mo-in { animation: mo-fade .6s ease .45s backwards; }
html[data-motion="full"] body :is(#gs, .app) .side.mo-in .nav.mo-g:is(#gs,*):not(#mo-z)::before, html[data-motion="full"] body :is(#gs, .app) .side.mo-in .nav.mo-g:is(#gs,*):not(#mo-z)::after { animation: mo-fade .4s ease .55s backwards; }
html[data-motion="full"] body .side.mo-in :is(.ctx, .kbar, .nav > :is(button, a, .nav-label), .side-foot) { animation: mo-sub .5s var(--mo-out) backwards; animation-delay: calc(var(--mo-i, 0) * 22ms + 120ms); }

/* changement de page : un fondu, puis les blocs en cascade */
html[data-motion="full"] body .app .main > .view.mo-enter > .viewbar { animation: mo-rise .45s var(--mo-out) backwards; }
html[data-motion="full"] body .app .main > .view.mo-enter > main > .wrap > :nth-child(-n+14),
html[data-motion="full"] body .app .main > .view.mo-enter > main > :not(.wrap):nth-child(-n+14) { animation: mo-rise .55s var(--mo-out) backwards; animation-delay: var(--mo-d, 300ms); }
html body .app .main > .view > main > .wrap > :nth-child(1), html body .app .main > .view > main > :not(.wrap):nth-child(1) { --mo-d: 50ms; }
html body .app .main > .view > main > .wrap > :nth-child(2), html body .app .main > .view > main > :not(.wrap):nth-child(2) { --mo-d: 100ms; }
html body .app .main > .view > main > .wrap > :nth-child(3), html body .app .main > .view > main > :not(.wrap):nth-child(3) { --mo-d: 150ms; }
html body .app .main > .view > main > .wrap > :nth-child(4), html body .app .main > .view > main > :not(.wrap):nth-child(4) { --mo-d: 200ms; }
html body .app .main > .view > main > .wrap > :nth-child(5), html body .app .main > .view > main > :not(.wrap):nth-child(5) { --mo-d: 240ms; }
html body .app .main > .view > main > .wrap > :nth-child(6), html body .app .main > .view > main > :not(.wrap):nth-child(6) { --mo-d: 270ms; }
html[data-motion="full"] body .app .main > .view.mo-enter#view-inbox, html[data-motion="full"] body .app .main > .view.mo-enter#view-chat { animation: mo-fade .28s ease; }
html[data-motion="full"] body .app .main > .view.mo-enter:is(#view-inbox, #view-chat) > * { animation: none !important; }
/* tableau de bord : ses blocs en cascade quand il arrive, puis les chiffres qui défilent (motion.js) */
html[data-motion="full"] body #dbx.mo-dbx-in .dbx4 > :nth-child(-n+10) { animation: mo-rise .55s var(--mo-out) backwards; }
html[data-motion="full"] body #dbx.mo-dbx-in .dbx4 > :nth-child(2) { animation-delay: 60ms; }
html[data-motion="full"] body #dbx.mo-dbx-in .dbx4 > :nth-child(3) { animation-delay: 120ms; }
html[data-motion="full"] body #dbx.mo-dbx-in .dbx4 > :nth-child(4) { animation-delay: 180ms; }
html[data-motion="full"] body #dbx.mo-dbx-in .dbx4 > :nth-child(5) { animation-delay: 230ms; }
html[data-motion="full"] body #dbx.mo-dbx-in .dbx4 > :nth-child(n+6) { animation-delay: 270ms; }
html[data-motion="full"] body #dbx.mo-dbx-in .mo-tico { animation: mo-pop-in .6s var(--mo-pop) backwards; animation-delay: calc(var(--mo-k, 0) * 70ms + 260ms); }
html body .mo-count { font-variant-numeric: tabular-nums; }
/* graphiques : la courbe se dessine, l'aire suit, les barres montent */
html[data-motion="full"] body .vch.vch-k-area .vch-plot > svg { animation: mo-reveal 1.2s cubic-bezier(.6, 0, .2, 1) backwards; }
html[data-motion="full"] body .vch :is(.vch-peak, .vch-avg) { animation: mo-fade .45s ease 1s backwards; }
html[data-motion="full"] body .app .vch-bars i:is(.vch-bar, .vch-pbar):not(#mo-z) { transform-origin: 50% 100%; animation: mo-grow .7s var(--mo-out) backwards !important; animation-delay: calc(var(--mo-i, 0) * 28ms + 80ms) !important; }
html[data-motion="full"] body #dbx .dbx4-spark { animation: mo-reveal 1s cubic-bezier(.6, 0, .2, 1) .25s backwards; }
html[data-motion="full"] body #dbx .dbx4-bar::after { transform-origin: 0 50%; animation: mo-grow-x .9s var(--mo-out) .2s backwards; }
@keyframes mo-grow-x { from { transform: scaleX(0); } }
/* pastilles « en ligne » qui respirent (vrais états : chatters en shift, synchro automatique active, créatrice connectée) */
html[data-motion="full"] body :is(.ct-live:not(.idle), .dbx5-on > i, .of-sync.on .of-dot) { position: relative; }
html[data-motion="full"] body :is(.ct-live:not(.idle), .dbx5-on > i, .of-sync.on .of-dot, .app .ibp-dot.ok)::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: mo-ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; pointer-events: none; }

/* onglets et segments : le soulignement et le curseur glissent (motion.js : .mo-gl) */
html body :is(#gs, .app, .lock) .mo-gl-p > :is(button, a):is(#gs,*):not(#mo-z), html body :is(#gs, .app, .lock) .mo-gl-v > :is(button, a):is(#gs,*):not(#mo-z) { position: relative; z-index: 1; }
html body :is(#gs, .app, .lock) .mo-gl-p:is(#gs,*):not(#mo-z)::before { content: ""; display: block !important; position: absolute; left: 0; top: 0; width: var(--g-w, 0px); height: var(--g-h, 0px); transform: translate(var(--g-x, 0px), var(--g-y, 0px)); border-radius: 7px; background: var(--pro-seg-on); box-shadow: 0 1px 2px rgba(20, 20, 19, .08), 0 0 0 1px var(--line); opacity: var(--g-o, 0); pointer-events: none; z-index: 0; }
:root:not([data-theme="light"]) body :is(#gs, .app) .mo-gl-p:is(#gs,*):not(#mo-z)::before { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent); }
html body :is(#gs, .app, .lock) .mo-gl-p > :is(button, a):is([aria-selected="true"], [aria-checked="true"], [aria-pressed="true"], .on):is(#gs,*):not(#mo-z) { background: transparent !important; box-shadow: none !important; }
html body :is(#gs, .app, .lock) .mo-gl-u:is(#gs,*):not(#mo-z)::after { content: ""; display: block !important; position: absolute; left: 0; bottom: -1px; top: auto; height: 2px; width: var(--g-w, 0px); transform: translateX(var(--g-x, 0px)); border-radius: 2px; background: var(--acc); opacity: var(--g-o, 0); pointer-events: none; z-index: 2; }
html body :is(#gs, .app, .lock) .mo-gl-u > button[aria-selected="true"]:is(#gs,*):not(#mo-z) { box-shadow: none !important; }
@media (min-width: 761px) { html body :is(#gs, .app, .lock) .mo-gl-v:is(#gs,*):not(#mo-z)::before { content: ""; display: block !important; position: absolute; left: 0; top: 0; width: var(--g-w, 0px); height: var(--g-h, 0px); transform: translate(var(--g-x, 0px), var(--g-y, 0px)); border-radius: 10px; background: var(--surface-2); box-shadow: inset 2.5px 0 0 var(--acc); opacity: var(--g-o, 0); pointer-events: none; z-index: 0; } }
@media (min-width: 761px) { html body :is(#gs, .app, .lock) .mo-gl-v > button[aria-selected="true"]:is(#gs,*):not(#mo-z) { background: transparent !important; } }
html body :is(#gs, .app, .lock) .mo-gl-b:is(#gs,*):not(#mo-z)::before { content: ""; display: block !important; position: absolute; left: 0; top: 0; width: var(--g-w, 0px); height: 2.5px; transform: translate(var(--g-x, 0px), var(--g-y, 0px)); border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--acc-2), var(--acc)); box-shadow: 0 0 10px color-mix(in srgb, var(--acc) 60%, transparent); opacity: var(--g-o, 0); pointer-events: none; z-index: 2; }
html[data-motion="full"] body :is(#gs, .app, .lock) .mo-gl:is(#gs,*):not(#mo-z)::before, html[data-motion="full"] body :is(#gs, .app, .lock) .mo-gl:is(#gs,*):not(#mo-z)::after { transition: transform .5s var(--mo-spring), width .45s var(--mo-spring), height .3s var(--mo-out), opacity .2s ease; }
html body :is(#gs, .app, .lock) .mo-gl.mo-ni:is(#gs,*):not(#mo-z)::before, html body :is(#gs, .app, .lock) .mo-gl.mo-ni:is(#gs,*):not(#mo-z)::after { transition: none !important; }

/* boutons : un appui (et une onde au clic, motion.js) */
html[data-motion="full"] body :is(.btn-main, .btn-ghost, .btn-soft, .btn-danger, .wg2-btn, .fold-btn, .linkish.btn):not(:disabled) { transition: transform .22s var(--mo-pop), background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease, opacity .2s ease; }
html[data-motion="full"] body :is(.btn-main, .btn-ghost, .btn-soft, .btn-danger, .wg2-btn, .fold-btn):not(:disabled):active { transform: scale(.97); }
html body .mo-rel { position: relative; }
html body .mo-rip-c { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
html body .mo-rip { position: absolute; border-radius: 50%; background: currentColor; opacity: .2; transform: scale(0); animation: mo-rip .6s ease-out forwards; pointer-events: none; }

/* cartes : léger soulèvement et un reflet qui suit la souris (ordinateur, tableau de bord) */
@media (hover: hover) and (pointer: fine) {
  html[data-motion="full"] body :is(#gs, .app) #dbx :is(.dbx-card, .dbx5-strip, .dbx4-acts):is(#gs,*):not(#mo-z) { transition: transform .45s var(--mo-out), box-shadow .45s ease, border-color .25s ease; }
  html[data-motion="full"] body :is(#gs, .app) #dbx :is(.dbx-card, .dbx5-strip, .dbx4-acts):hover:is(#gs,*):not(#mo-z) { transform: translateY(-2px); box-shadow: var(--pro-sh2) !important; }
  html[data-motion="full"] body #dbx :is(.dbx-card, .dbx5-k).mo-glare { position: relative; }
  html[data-motion="full"] body #dbx :is(.dbx-card, .dbx5-k).mo-glare::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), color-mix(in srgb, var(--fg) 6%, transparent), transparent 70%); opacity: 0; transition: opacity .35s ease; z-index: 0; }
  html[data-motion="full"] body #dbx :is(.dbx-card, .dbx5-k).mo-glare:hover::after { opacity: 1; }
  html[data-motion="full"] body #dbx .dbx5-k .mo-tico { transition: transform .45s var(--mo-pop); }
  html[data-motion="full"] body #dbx .dbx5-k:hover .mo-tico { transform: scale(1.1) rotate(-8deg); }
}

/* fenêtres, menus, recherche, feuilles du bas, notifications : une entrée à ressort */
html[data-motion="full"] body .co-modal.in { animation: mo-fade .25s ease; }
html[data-motion="full"] body .co-modal.in :is(.co-card, .tr-mcard, .ps-card):not(#mo-z) { animation: mo-modal .45s var(--mo-spring) both !important; }
html[data-motion="full"] body :is(#gs, .app) .ctx-pop:not([hidden]):is(#gs,*):not(#mo-z) { transform-origin: 50% 0; animation: mo-pop-in .34s var(--mo-spring) both !important; }
html[data-motion="full"] body :is(#gs, .app) .um-pop:not([hidden]):is(#gs,*):not(#mo-z) { transform-origin: 30% 100%; animation: mo-pop-up .36s var(--mo-spring) both !important; }
html[data-motion="full"] body .um-pop:not([hidden]) > * { animation: mo-sub .4s var(--mo-out) backwards; }
html[data-motion="full"] body .um-pop:not([hidden]) > :nth-child(2) { animation-delay: 30ms; }
html[data-motion="full"] body .um-pop:not([hidden]) > :nth-child(3) { animation-delay: 60ms; }
html[data-motion="full"] body .um-pop:not([hidden]) > :nth-child(4) { animation-delay: 90ms; }
html[data-motion="full"] body .um-pop:not([hidden]) > :nth-child(5) { animation-delay: 120ms; }
html[data-motion="full"] body .um-pop:not([hidden]) > :nth-child(n+6) { animation-delay: 150ms; }
html[data-motion="full"] body .kp-back:not([hidden]) { animation: mo-fade .2s ease; }
html[data-motion="full"] body .kp-back:not([hidden]) .kp { animation: mo-modal .42s var(--mo-spring) both; }
html[data-motion="full"] body .vsheet .vsheet-in { animation: mo-sheet .5s var(--mo-spring) both; }
@media (max-width: 760px) { html[data-motion="full"] body #set-tabs.m-sheet:not(#mo-z) { animation: mo-sheet .5s var(--mo-spring) both; } }
html[data-motion="full"] body .toasts > .toast.in { animation: mo-toast .5s var(--mo-spring) backwards; }
html body .toasts > .toast { position: relative; overflow: hidden; }
html[data-motion="full"] body .toasts > .toast.in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--acc-2), var(--acc)); transform-origin: 0 50%; animation: mo-tbar 3.8s linear forwards; pointer-events: none; }
html[data-motion="full"] body .toasts > .toast.bad.in::after { background: var(--danger); animation-duration: 6.5s; }

/* SubScale IA : repos (respire), réflexion (les carrés tournent en marches), terminé (petit rebond) */
html[data-motion="full"] body .vav.vav-ss[data-state="idle"] .vav-sq1:is(#gs,*):not(#mo-z) { animation: mo-brA 4.8s ease-in-out infinite; }
html[data-motion="full"] body .vav.vav-ss[data-state="idle"] .vav-sq2:is(#gs,*):not(#mo-z) { animation: mo-brB 4.8s ease-in-out infinite; }
html[data-motion="full"] body .vav.vav-ss[data-state="thinking"] .vav-sq1:is(#gs,*):not(#mo-z) { opacity: 1; animation: mo-stA 2.4s cubic-bezier(.75, 0, .25, 1) infinite; }
html[data-motion="full"] body .vav.vav-ss[data-state="thinking"] .vav-sq2:is(#gs,*):not(#mo-z) { opacity: 1; animation: mo-stB 2.4s cubic-bezier(.75, 0, .25, 1) infinite; }
html[data-motion="full"] body .vav.vav-ss[data-state="generating"] .vav-sq1:is(#gs,*):not(#mo-z) { opacity: 1; animation: mo-stA 1.6s cubic-bezier(.75, 0, .25, 1) infinite; }
html[data-motion="full"] body .vav.vav-ss[data-state="generating"] .vav-sq2:is(#gs,*):not(#mo-z) { opacity: 1; animation: mo-stB 1.6s cubic-bezier(.75, 0, .25, 1) infinite; }
html[data-motion="full"] body .vav.vav-ss[data-state="success"] .vav-sq1:is(#gs,*):not(#mo-z) { animation: mo-dn .8s var(--mo-pop) both; }
html[data-motion="full"] body .vav.vav-ss[data-state="success"] .vav-sq2:is(#gs,*):not(#mo-z) { animation: mo-dn .8s var(--mo-pop) .1s both; }
/* le contour lumineux qui tourne autour du bloc pendant que l'IA travaille */
html[data-motion="full"] body :is(.card, .dbx-card, .vai-panel, .co-card, .hp-m):has(.vav:is([data-state="thinking"], [data-state="generating"])) { position: relative; }
html[data-motion="full"] body :is(.card, .dbx-card, .vai-panel, .co-card):has(.vav:is([data-state="thinking"], [data-state="generating"]))::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--mo-ang), transparent 0 58%, var(--acc) 74%, var(--acc-2) 86%, transparent 96%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: mo-ang 2.6s linear infinite; pointer-events: none; z-index: 3; }
/* le texte de statut qui brille à côté du symbole (« L'IA écrit… ») */
html[data-motion="full"] body :is(p, span, small, em):has(> .vav:is([data-state="thinking"], [data-state="generating"])) { background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 35%, var(--fg) 50%, var(--muted) 65%, var(--muted) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; animation: mo-shim 1.6s linear infinite; }
html[data-motion="full"] body :is(p, span, small, em):has(> .vav:is([data-state="thinking"], [data-state="generating"])) > .vav { -webkit-text-fill-color: initial; color: var(--fg); }
/* Cerveau : les boutons pendant l'analyse (« Analyse en cours… ») brillent */
html[data-motion="full"] body #view-cerveau button[disabled]:is([data-cv-do], [data-cv-fbrun], [data-cv-grow], [data-cv-var]) { position: relative; overflow: hidden; }
html[data-motion="full"] body #view-cerveau button[disabled]:is([data-cv-do], [data-cv-fbrun], [data-cv-grow], [data-cv-var])::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, color-mix(in srgb, var(--acc) 45%, transparent) 50%, transparent 75%); animation: mo-sweep 1.4s ease-in-out infinite; pointer-events: none; }

/* états vides : un petit document qui flotte et cligne des yeux (dessiné en CSS, rien d'ajouté au HTML) */
html body .app .view :is(p.empty, div.empty):not(#mo-z) { position: relative; }
html body .app .view :is(p.empty, div.empty):not(#mo-z)::before {
  border: 1.5px solid var(--line-2) !important; width: 44px !important; height: 54px !important; border-radius: 9px 15px 9px 9px !important;
  background: linear-gradient(var(--line-2), var(--line-2)) 9px 11px / 15px 3px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 9px 18px / 22px 3px no-repeat, linear-gradient(color-mix(in srgb, var(--acc) 55%, transparent), color-mix(in srgb, var(--acc) 55%, transparent)) 16px 40px / 10px 3px no-repeat, var(--surface-2) !important;
}
html body .app .view :is(p.empty, div.empty):not(#mo-z)::after { content: ""; position: absolute; left: 50%; top: 63px; width: 21px; height: 4px; margin-left: -10.5px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) 0 7px, transparent 7px 14px, var(--acc) 14px 21px); pointer-events: none; }
html body .app #au-alerts-card.au-quiet .empty:not(#mo-z)::after { display: none !important; }
html[data-motion="full"] body .app .view :is(p.empty, div.empty):not(#mo-z)::before, html[data-motion="full"] body .app .view :is(p.empty, div.empty):not(#mo-z)::after { animation: mo-float 3.8s ease-in-out infinite; }
html[data-motion="full"] body .app .view :is(p.empty, div.empty):not(#mo-z)::after { animation: mo-float 3.8s ease-in-out infinite, mo-blink 4.4s ease-in-out infinite; }
/* « Chargement… » : un squelette qui brille (motion.js : .mo-loading) */
html body .mo-loading:not(#mo-z) { position: relative; color: transparent !important; min-height: 46px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--fg) 7%, var(--surface-2)) 50%, var(--surface-2) 75%) !important; background-size: 200% 100% !important; }
html body .mo-loading:not(#mo-z)::before { content: ""; position: absolute; left: 14px; top: 14px; width: 42%; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 10%, transparent); box-shadow: 0 13px 0 0 color-mix(in srgb, var(--fg) 7%, transparent); }
html[data-motion="full"] body .mo-loading:not(#mo-z) { animation: uiShimmer 1.3s linear infinite; }

/* connexion et « Ouvre SubScale » : le dégradé de la signature bouge lentement */
@media (min-width: 900px) {
  html[data-motion="full"] body .lock-pitch::before { content: ""; position: absolute; inset: -20%; background: var(--pro-sig); z-index: -2; animation: mo-drift 22s ease-in-out infinite alternate; pointer-events: none; }
}

/* téléphone : un retour au toucher */
@media (hover: none) {
  html[data-motion="full"] body .app :is(.bottomnav button, .dbx5-k, .dbx4-act, .acc-sw):active { transform: scale(.97); transition: transform .12s ease; }
}

/* =====================================================================
   RÉDUITES (choix « Réduites » ou l'ordinateur qui demande de réduire les animations) : rien ne bouge
   ===================================================================== */
html[data-motion="calm"] *, html[data-motion="calm"] *::before, html[data-motion="calm"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }

/* téléphone : le compteur des messages de la barre du bas, lisible à la couleur d'accent */
html body .bottomnav .nav-count:not(#mo-z) { background: var(--acc-fill) !important; color: var(--acc-ink) !important; border-color: var(--surface) !important; opacity: 1 !important; z-index: 2; }
/* (correctif vu en passant) Créatrices, vue Tableau : les montants des colonnes chiffrées étaient à l'encre claire du thème clair, illisibles en sombre */
html body :is(#gs, .app) #view-createurs td.num:is(#gs,*):not(#mo-z) { color: var(--fg) !important; }
