/* LA COUCHE DE MOUVEMENT DU STUDIO (v5, 29/11/2026) · compagne de studio-mouvement.js. Ce qui entre ne touche qu'à transform et
   opacity. Pas de filter: blur à l'entrée (les cartes ont déjà backdrop-filter), pas de view-transition-name (le verre garde son flou).
   Courbes : --m-expo, --m-p4, --m-p3, --m-p2, --m-p3io, --m-p2in, --m-b115, --m-b17, --m-b24 (écrites par le JS en linear()). */
:root{--m-expo:cubic-bezier(.19,1,.22,1);--m-p4:cubic-bezier(.23,1,.32,1);--m-p3:cubic-bezier(.165,.84,.44,1);--m-p2:cubic-bezier(.215,.61,.355,1);--m-p3io:cubic-bezier(.77,0,.175,1);--m-p2in:cubic-bezier(.55,.055,.675,.19);--m-p3in:cubic-bezier(.895,.03,.685,.22);--m-b115:cubic-bezier(.3,1.25,.5,1);--m-b17:cubic-bezier(.34,1.56,.64,1);--m-b24:cubic-bezier(.34,1.9,.6,1);
  --m-trait-c:rgba(208,216,228,.15)}

/* la couche prend la main sur les anciennes arrivées en CSS (sinon tout entrerait deux fois) */
html.m-on body.verre #view>.ecx-page>*,html.m-on body.verre #view>.lq-page>*,html.m-on body.verre #view>.stu>*,
html.m-on body.verre .stu-x>*,html.m-on body.verre .stu-x .stu-x-instr>*,html.m-on .stu-x>*{animation:none}
/* la page entière ne fond plus à chaque rendu (ecxEntre, 450 ms d'opacité sur le parent du verre) : seul le contenu entre */
html.m-on #view>.ecx-page{animation:none}
.m-fantome,.m-menu-fantome{pointer-events:none!important;z-index:1}
.m-menu-fantome,.m-menu-fantome *{animation:none!important;transition:none!important}
#stuSide.m-barre-att>:not(.m-menu-fantome){opacity:0!important}   /* la nouvelle barre se construit derrière l'ancienne */
/* le fantôme de l'ancien menu d'une appli (ses [data-mo]) ne doit pas masquer les espaces récents de l'Accueil (:has de studio.css) */
html.m-on body.stu-on.lin.verre.stu2 #stuSide:not(:has(>.ecx-nav:not(.m-menu-fantome) [data-mo])) #stuVoletEsp{display:flex}
html.m-on body.s3.stu-on.lin.verre.stu2 #stuSide:not(:has(>.ecx-nav:not(.m-menu-fantome) [data-mo])) #stuVoletEsp{display:block}
.m-fantome,.m-fantome *,.m-fantome *::before,.m-fantome *::after{animation:none!important;transition:none!important}
html.m-on #view .m-fantome h1.m-titre::after{transform:scaleX(1)}

/* le changement d'écran au clavier (un geste au doigt a sa propre sortie, sans transition de la racine) : l'ancienne image passe
   au-dessus et s'efface en 180 ms power2.in, la nouvelle est dessous, sans fondu (son contenu entre après, depuis l'opacité 0).
   L'effacement passe par filter: opacity(), pas par opacity : la règle « finale » de styles.css pose opacity:1 !important sur
   l'ancienne image, et une déclaration !important l'emporte sur une animation (la v3 restait opaque puis disparaissait d'un coup). */
html.m-on::view-transition-group(root){animation-duration:.18s!important}
html.m-on::view-transition-image-pair(root){isolation:isolate}
html.m-on::view-transition-old(root){animation:m-vt-sort .18s cubic-bezier(.55,.055,.675,.19) both!important;z-index:1;mix-blend-mode:normal}
html.m-on::view-transition-new(root){animation:none!important;opacity:1!important;mix-blend-mode:normal}
@keyframes m-vt-sort{from{filter:opacity(1)}to{filter:opacity(0)}}

/* le démarrage : ni l'écran de connexion (photo, champs) ni la page publique (barre « Studio FLF · Production vidéo… ») ne
   clignotent avant le Studio. La connexion attend 700 ms avant de se montrer (le temps que l'appli sache qu'une session est là) ;
   la barre publique reste cachée tant que la vue est vide. Puis html.m-boot retient tout le Studio pendant que sa barre se
   construit, et le cadre apparaît d'un seul geste (studio-mouvement.js, retenirBarre). */
html:not(.m-vu) #login{animation:m-boot-att 1ms .7s backwards}
@keyframes m-boot-att{from,to{visibility:hidden}}
html:not(.m-vu) #app:has(>#view:empty)>:is(.topbar,.foot){visibility:hidden}
html.m-boot body>:not(#stuScene){visibility:hidden!important}

/* les chiffres qui comptent gardent leur largeur */
.m-chiffre,[data-m-compte]{font-variant-numeric:tabular-nums}

/* le titre lettre par lettre : chaque mot masque ses lettres (la cédille et les jambages restent visibles) */
.m-mot{display:inline-block;overflow:hidden;vertical-align:top;padding:0 .03em .16em;margin:0 -.03em -.16em}
.m-ch{display:inline-block;transform-origin:0 100%}
/* le trait du titre (Sylva .phead__mark : 14 px, 2 px du bas, derrière les lettres), à l'ADN noir : un surligneur acier à 20 %
   qui passe DERRIÈRE le bas des lettres (bottom .06em, hauteur .3em), plus sous les jambages : il ne touche plus la cédille de
   « François » et ne colle plus au sous-titre sur iPhone. Il se trace de gauche à droite (Web Animations sur ::after, voir titre()). */
html.m-on #view h1.m-titre{position:relative;isolation:isolate;width:fit-content;max-width:100%}
html.m-on #view h1.m-titre::after{content:"";position:absolute;z-index:-1;left:-.12em;right:-.18em;bottom:.06em;height:.3em;border-radius:4px 10px 6px 3px;
  background:var(--m-trait-c);transform-origin:0 50%;transform:scaleX(1);pointer-events:none}

/* survol, comme Sylva : seul le fond de la carte change (pas de levée, pas d'inclinaison, pas de reflet qui suit la souris) */
html.m-on #view .a2-c:is(button,a,[role=button]){transition:transform .25s var(--m-p3),box-shadow .3s var(--m-p2),background-color .3s var(--m-p2)}
html.m-on #view .a2-k:hover{transform:none}
html.m-on #view .a2-c:is(button,a,[role=button]):hover{box-shadow:inset 0 0 0 999px rgba(255,255,255,.04),inset 0 1px 0 rgba(255,255,255,.06),0 18px 50px -24px rgba(0,0,0,.7)}

/* la pastille de l'entrée active : un calque plein découpé en clip-path, qui glisse et s'étire */
.m-ind-on{position:relative;isolation:isolate}
.m-ind{position:absolute;left:0;top:0;z-index:-1;pointer-events:none;opacity:0;clip-path:inset(0 0 100% 0);
  background:linear-gradient(180deg,rgba(255,255,255,.125),rgba(255,255,255,.08))}
.m-ind-on>.on,.m-ind-on>[aria-selected=true],.m-ind-on>[aria-pressed=true],.m-ind-on>[aria-current=page],.m-ind-on>.actif{background:transparent!important;box-shadow:none!important}
.m-ind-on>.lin-ind{display:none!important}   /* l'ancien repère sautait d'un coup par-dessus la pastille */
[data-m=onglets].m-ind-on>.on,[data-m=onglets].m-ind-on>[aria-selected=true],[data-m=onglets].m-ind-on>[aria-pressed=true]{color:#08090a;border-color:transparent!important}
[data-m=onglets] .m-ind{background:#f7f8f8}
[data-m=onglets].m-ind-on>button{transition:color .3s var(--m-p2)}
/* l'icône de l'entrée active rejoint la pastille : elle s'allume pendant que la pastille arrive (et s'éteint tout de suite ailleurs) */
html.m-on #stuSide .ecx-nav>button,html.m-on #stuSide .ecx-nav>button .ecx-i{transition:color .3s var(--m-p2),background-color .3s var(--m-p2),box-shadow .3s var(--m-p2)}
html.m-on #stuSide .ecx-nav>button.on,html.m-on #stuSide .ecx-nav>button.on .ecx-i{transition-delay:.16s}
/* le sous-titre du menu d'une appli (« 14 ouvertes · … ») a sa ligne réservée : quand il arrive, les entrées ne sautent plus */
html.m-on #stuSide .lin-ctx small{display:block;min-height:1lh}

/* le tiroir de détail : il glisse depuis la droite en 600 ms expo.out et repart en 320 ms power3.in (Sylva) */
html.m-on .et-panneau{transition:transform .32s var(--m-p3in)}
html.m-on .et-panneau.on{transition:transform .6s var(--m-expo)}
html.m-on .et-panneau:not(.on){transform:translateX(104%)}
html.m-on .et-voile{transition:opacity .3s var(--m-p2)}

/* la barre latérale retenue au premier chargement, le temps qu'elle se construise ; les fantômes de sortie n'interceptent rien */
.m-attente{opacity:0!important}
.m-sortie{pointer-events:none!important}
.m-sortie,.m-sortie *{animation:none!important;transition:none!important}   /* le fantôme ne rejoue pas l'entrée CSS de l'appli */
[data-m-attend]>.af2-charge{display:none}

/* les squelettes : des formes calmes, un balayage de lumière lent (transform seulement), une apparition retardée pour ne
   jamais clignoter quand les données arrivent vite */
.m-sq{position:relative;overflow:hidden;animation:m-sq-in .4s var(--m-p2) .18s both}
.m-sq::after{content:"";position:absolute;inset:0;pointer-events:none;transform:translateX(-100%);
  background:linear-gradient(100deg,transparent 22%,rgba(255,255,255,.045) 42%,rgba(255,255,255,.085) 50%,rgba(255,255,255,.045) 58%,transparent 78%);animation:m-brille 1.6s var(--m-p3io) infinite}
.m-sq i,.m-sq b{display:block;border-radius:6px;background:rgba(255,255,255,.06)}
.m-sq-carte{min-height:150px;box-sizing:border-box;border-radius:20px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);padding:20px;display:flex;flex-direction:column;gap:12px}
.m-sq-carte i{height:11px}.m-sq-carte i.g{height:28px;border-radius:9px;margin:2px 0 8px}
.m-sq-carte:nth-child(2)::after{animation-delay:.1s}.m-sq-carte:nth-child(3)::after{animation-delay:.2s}.m-sq-carte:nth-child(4)::after{animation-delay:.3s}
.m-sq-bloc{display:flex;flex-direction:column;gap:9px}
.m-sq-bloc .m-sq-t{height:15px;width:46%}.m-sq-bloc .m-sq-s{height:10px;width:30%;margin-bottom:10px}
.m-sq-l{display:flex;flex-direction:column;gap:8px;padding:11px 0;border-top:1px solid rgba(255,255,255,.05)}
.m-sq-l i:first-child{height:12px}.m-sq-l i:last-child{height:9px;background:rgba(255,255,255,.04)}
.m-sq-rang{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}
.m-sq-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.m-sq-b{min-height:190px;gap:4px}.m-sq-b .m-sq-t{height:14px;width:40%;margin-bottom:8px}
@media (max-width:1080px){.m-sq-rang{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media (max-width:760px){.m-sq-duo{grid-template-columns:1fr;gap:10px}}
.m-sq-gr{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.m-sq-gr b{height:100px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.045)}
@keyframes m-sq-in{from{opacity:0}}
@keyframes m-brille{to{transform:translateX(100%)}}

/* retours de geste */
.m-flash{animation:m-flash .8s var(--m-p3)}
@keyframes m-flash{0%{color:#f7f6f0}}
.m-refus{box-shadow:0 0 0 2px rgba(255,107,82,.85)!important;border-radius:inherit}
.m-envol{position:fixed;z-index:9999;pointer-events:none;font:600 13px/1 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;font-variant-numeric:tabular-nums;
  color:#0b0b0d;background:#f7f6f0;padding:7px 11px;border-radius:999px;white-space:nowrap;box-shadow:0 12px 26px -12px rgba(0,0,0,.85)}

/* l'écart statique avec Sylva, à l'ADN noir (« ne prendre que la structure ») : chiffres des KPI en 26 px / 600 (22 px sur
   téléphone), les trois premières cartes à peine teintées des couleurs de la scène (ambre, corail, bleu nuit, 9 %), la quatrième en
   verre neutre ; derrière, une photo du studio très floutée et assombrie, fixe, à la place du fond uni. */
html.m-on body.verre #view .a2-k .a2-v{font-size:26px;font-weight:600;letter-spacing:-.025em;line-height:1.1}
html.m-on body.verre #view .a2-k4>.a2-k:nth-child(1){background:linear-gradient(160deg,rgba(247,246,240,.09),rgba(247,246,240,0) 62%),var(--a2-gl)}
html.m-on body.verre #view .a2-k4>.a2-k:nth-child(2){background:linear-gradient(160deg,rgba(255,107,82,.08),rgba(255,107,82,0) 62%),var(--a2-gl)}
html.m-on body.verre #view .a2-k4>.a2-k:nth-child(3){background:linear-gradient(160deg,rgba(110,140,255,.09),rgba(110,140,255,0) 62%),var(--a2-gl)}
@media (max-width:760px){html.m-on body.verre #view .a2-k .a2-v{font-size:22px}}
html.m-on body.verre.stu-on::before{content:"";position:fixed;inset:-6%;z-index:0;pointer-events:none;background:url(assets/login-poster.jpg) center/cover no-repeat;
  filter:blur(48px) saturate(.7) brightness(.42);opacity:.5;transition:opacity .4s var(--m-p2)}
/* au démarrage, la photo ne se montre pas seule sur un écran vide : elle vient avec le cadre (400 ms) */
html.m-on:not(.m-vu) body.verre.stu-on::before,html.m-boot body.verre.stu-on::before{opacity:0}
/* les halos de la scène aussi : ni photo ni halos seuls sur un écran vide, tout vient avec le cadre */
html.m-on #stuScene{transition:opacity .4s var(--m-p2)}
html.m-on:not(.m-vu) #stuScene,html.m-boot #stuScene{opacity:0}

/* mouvement réduit : tout est instantané, le trait est simplement là */
@media (prefers-reduced-motion:reduce){
  html.m-on #view h1.m-titre::after{animation:none;transform:none}
  .m-attente{opacity:1!important}
  html:not(.m-vu) #login{animation:none}
  html.m-on #stuSide .ecx-nav>button.on,html.m-on #stuSide .ecx-nav>button.on .ecx-i{transition-delay:0s}
  .m-sq,.m-sq::after,.m-flash{animation:none!important}
  html.m-on body.verre.stu-on::before,html.m-on #stuScene{transition:none}
  html.m-on .et-panneau,html.m-on .et-panneau.on,html.m-on .et-voile,[data-m=onglets].m-ind-on>button,html.m-on #view .a2-c:is(button,a,[role=button]){transition:none!important}
  html.m-on::view-transition-group(root),html.m-on::view-transition-old(root),html.m-on::view-transition-new(root){animation:none!important}
}
/* 29/11 (vérification finale) · sur téléphone, le trait sous le titre se lisait comme une ligne grise oubliée : il n'existe plus sous 860 px */
@media (max-width:860px){html.m-on #view h1.m-titre::after{display:none}}
