
/* =========================================================
   V35.1 — verrouillage du scroll pendant l'ouverture du popup
   ========================================================= */

html.modal-open,
body.modal-open{
  overscroll-behavior:none!important;
}

body.modal-open{
  overflow:hidden!important;
}

/* Le fond sombre capte bien le clic/touch en dehors de la boîte. */
.project-modal__backdrop{
  touch-action:none;
}

/* Le popup lui-même peut défiler si son contenu dépasse sur petit écran. */
.project-modal__dialog{
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

@media(max-width:980px){
  body.modal-open{
    position:fixed!important;
    left:0!important;
    right:0!important;
    width:100%!important;
  }

  .project-modal{
    overscroll-behavior:none!important;
  }

  .project-modal__dialog{
    max-height:calc(100svh - 20px)!important;
    overflow-y:auto!important;
  }
}


/* V35.2 fail-safe : le loader ne peut jamais bloquer le site indéfiniment. */
.site-loader{
  animation:v352LoaderFailsafe .7s ease 5s forwards;
}
@keyframes v352LoaderFailsafe{
  to{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }
}
