/* FLY LAB — écran d'arrivée (12/11/2026, ordre de Paul : le logo animé s'affiche pendant que le site charge).
   Style du générique de 4 s (~/chantiers/ops-video-rdv-1211/moteur/src/FlylabSting.tsx) resserré : éclat bleu et trait de
   lumière, l'emblème se forme, FLY puis LAB, « flylab.fr », reflet. Logo complet à 1,35 s ; sortie entre 1,5 et 3 s.
   Le bloc n'existe à l'écran que sous html[data-fl-arrivee], attribut posé par arrivee.js : sans JavaScript, rien.
   Garde-fou : si le script s'arrête en route, le fondu de sortie part seul à 2,55 s (écran parti à 3 s).
   Toutes les animations sont !important : la page coupe les siennes (moins d'animations, onglet caché), pas celles de l'écran.
   CSP de flylab.fr (style-src 'self') : tout est ici, aucun style en ligne. */

.fla{display:none}
html[data-fl-arrivee] .fla{display:block;position:fixed;top:0;left:0;right:0;height:100vh;height:100lvh;z-index:2147483000;overflow:hidden;contain:layout paint style;
  background-color:#03050b;background-image:linear-gradient(180deg,#050913 0%,#03050b 100%);
  -webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;cursor:default;
  animation:fla-sortie .45s cubic-bezier(.4,0,.2,1) 2.55s forwards!important}
html[data-fl-arrivee] .fla::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;
  background-image:radial-gradient(ellipse 80% 80% at 50% 50%,rgba(0,0,0,0) 55%,rgba(0,0,0,.55) 100%)}

html[data-fl-arrivee] .fla .fla-lueur{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;
  background-image:radial-gradient(ellipse 46% 52% at 50% 46%,rgba(18,70,232,.22) 0%,rgba(18,70,232,.08) 45%,rgba(18,70,232,0) 75%),radial-gradient(ellipse 70% 40% at 50% 112%,rgba(46,123,255,.1),rgba(46,123,255,0) 70%);
  animation:fla-op 1.1s cubic-bezier(.33,1,.68,1) .12s both!important}
html[data-fl-arrivee] .fla .fla-scene{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;padding:0 0 4vh}
html[data-fl-arrivee] .fla .fla-logo{position:relative;width:78vw;width:min(78vw,560px);margin:0;padding:0;animation:fla-pousse 3s cubic-bezier(.37,0,.63,1) both!important}
html[data-fl-arrivee] .fla .fla-svg{display:block;width:100%;height:auto;max-width:none;overflow:visible;position:relative}

/* éclat bleu au centre de l'emblème (105, 105 dans le repère du logo) */
html[data-fl-arrivee] .fla .fla-eclat{position:absolute;left:12.76%;top:50%;width:48.6%;height:0;padding-top:48.6%;border-radius:50%;opacity:0;
  background-image:radial-gradient(closest-side,#fff 0%,rgba(143,220,255,.55) 30%,rgba(18,70,232,0) 100%);visibility:hidden;
  transform:translate(-50%,-50%) scale(.2);animation:fla-eclat .62s linear .05s both!important}
/* trait de lumière horizontal à la hauteur de la pale haute */
html[data-fl-arrivee] .fla .fla-trait{position:absolute;left:50%;top:35.18%;width:110vw;height:3px;border-radius:3px;opacity:0;
  background-image:linear-gradient(90deg,rgba(18,70,232,0) 0%,rgba(143,220,255,.9) 35%,#fff 50%,rgba(143,220,255,.9) 65%,rgba(18,70,232,0) 100%);
  box-shadow:0 0 28px 7px rgba(46,123,255,.42);visibility:hidden;transform:translate(-50%,-50%) scaleX(0);animation:fla-trait .9s linear .06s both!important}

/* pièces du logo : chaque enveloppe tourne autour de son origine locale (pivots posés dans le SVG) */
html[data-fl-arrivee] .fla .fla-p,html[data-fl-arrivee] .fla .fla-c,html[data-fl-arrivee] .fla .fla-reflet{transform-origin:0 0}
html[data-fl-arrivee] .fla .fla-p1{animation:fla-p1 .8s cubic-bezier(.16,1,.3,1) .1s both,fla-op .3s cubic-bezier(.33,1,.68,1) .1s both!important}
html[data-fl-arrivee] .fla .fla-p2{animation:fla-p2 .72s cubic-bezier(.16,1,.3,1) .22s both,fla-op .3s cubic-bezier(.33,1,.68,1) .22s both!important}
html[data-fl-arrivee] .fla .fla-p3{animation:fla-p3 .66s cubic-bezier(.16,1,.3,1) .34s both,fla-op .3s cubic-bezier(.33,1,.68,1) .34s both!important}
html[data-fl-arrivee] .fla .fla-c{animation:fla-c .5s cubic-bezier(.22,1,.36,1) .5s both!important}
html[data-fl-arrivee] .fla .fla-c2{animation-delay:.57s!important}
html[data-fl-arrivee] .fla .fla-c3{animation-delay:.64s!important}
html[data-fl-arrivee] .fla .fla-c4{animation-delay:.71s!important}
html[data-fl-arrivee] .fla .fla-c5{animation-delay:.78s!important}
html[data-fl-arrivee] .fla .fla-c6{animation-delay:.85s!important}
html[data-fl-arrivee] .fla .fla-reflet{animation:fla-reflet .6s cubic-bezier(.65,0,.35,1) 1.12s both!important}

html[data-fl-arrivee] .fla .fla-url{margin:16px 0 0;margin-top:clamp(14px,4.2vw,30px);padding:0 0 0 .34em;border:0;background:none;text-align:center;white-space:nowrap;
  font:500 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:clamp(11px,2.4vw,15px);letter-spacing:.34em;text-transform:none;
  color:#8FDCFF;opacity:0;animation:fla-url .55s cubic-bezier(.33,1,.68,1) .95s both!important}

/* sortie : dès que la page est chargée (arrivee.js), sinon toute seule à 2,55 s */
html[data-fl-arrivee] .fla.fla-fin{animation:fla-sortie-tot .45s cubic-bezier(.4,0,.2,1) forwards!important;pointer-events:none}
html[data-fl-arrivee] .fla.fla-fin .fla-scene{animation:fla-envol .45s cubic-bezier(.4,0,.2,1) forwards!important}

@keyframes fla-op{from{opacity:0}to{opacity:1}}
@keyframes fla-pousse{from{transform:scale(1)}to{transform:scale(1.03)}}
@keyframes fla-eclat{0%{opacity:0;visibility:hidden;transform:translate(-50%,-50%) scale(.2)}45%{opacity:.85;visibility:visible;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;visibility:hidden;transform:translate(-50%,-50%) scale(.3)}}
@keyframes fla-trait{0%{opacity:0;visibility:hidden;transform:translate(-50%,-50%) scaleX(0)}30%{opacity:.85;visibility:visible;transform:translate(-50%,-50%) scaleX(.9)}55%{opacity:.75;transform:translate(-50%,-50%) scaleX(1)}100%{opacity:0;visibility:hidden;transform:translate(-50%,-50%) scaleX(1)}}
@keyframes fla-p1{from{transform:rotate(-24deg) scale(.5)}to{transform:none}}
@keyframes fla-p2{from{transform:translate(-46px,26px)}to{transform:none}}
@keyframes fla-p3{from{transform:scale(1,.05)}to{transform:none}}
@keyframes fla-c{from{opacity:0;transform:translateX(-26px)}to{opacity:1;transform:none}}
@keyframes fla-reflet{0%{visibility:hidden;transform:translateX(-260px)}1%{visibility:visible}99%{visibility:visible}100%{visibility:hidden;transform:translateX(990px)}}
@keyframes fla-url{from{opacity:0;transform:translateY(10px)}to{opacity:.92;transform:none}}
@keyframes fla-envol{from{transform:none}to{transform:scale(1.04)}}
@keyframes fla-sortie{to{opacity:0;visibility:hidden}}
@keyframes fla-sortie-tot{from{opacity:1}to{opacity:0;visibility:hidden}}

/* le visiteur a demandé moins d'animations : rien ne bouge ; le logo final apparaît en fondu, l'écran part en fondu.
   (La page coupe toutes les animations dans ce cas : ces fondus sont déclarés !important pour rester. Un fondu n'est pas un mouvement.) */
@media (prefers-reduced-motion:reduce){
  html[data-fl-arrivee] .fla .fla-logo,html[data-fl-arrivee] .fla .fla-p,html[data-fl-arrivee] .fla .fla-c,html[data-fl-arrivee] .fla .fla-url{animation:none!important}
  html[data-fl-arrivee] .fla .fla-eclat,html[data-fl-arrivee] .fla .fla-trait,html[data-fl-arrivee] .fla .fla-reflet{display:none}
  html[data-fl-arrivee] .fla .fla-url{opacity:.92}
  html[data-fl-arrivee] .fla .fla-scene{animation:fla-op .45s ease-out .05s both!important}
  html[data-fl-arrivee] .fla.fla-fin .fla-scene{animation:none!important}
}
