/*
Theme Name: Hello Elementor Child
Description: Thème enfant pour Hello Elementor
Template: hello-elementor
Version: 1.0.0
*/

/* Loader fullscreen */
#custom-loader {
  position: fixed;
  inset: 0; /* top:0; left:0; right:0; bottom:0; */
  background: #F9C949;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

/* Centrer l'animation */
.loader-inner{
  width: 80%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Le GIF (Mascotte) */
.loader-inner img:first-child {
  width: 56.27%;
  height: auto;
  margin-left: 29%; /* Proportionnel (134/462) */
  margin-bottom: -5%; /* Marge basse fluide */
  display: block;
}

/* Le Logotype */
.loader-logo {
  width: 100%; /* Largeur totale du bloc */
  height: auto;
  display: block;
}

/* Optionnel : bloquer scroll pendant le loader */
body.loading {
  overflow: hidden;
}

/* === GESTION DE L'AFFICHAGE UNIQUE === */
/* Si JS détecte que l'intro est déjà jouée, on cache tout brutalement */
html.no-loader #custom-loader {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -9999 !important;
}

html.no-loader body {
    overflow: auto !important; /* Force le scroll à être actif */
}

/* === BOUTON GO UP === */
#goUpBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  padding: 10px 15px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

#goUpBtn:hover {
  background: #555;
  transform: scale(1.1);
}