@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

head{
position: sticky;
top:0;
backgroung color:white;
}

/* Mise place du logo dans le menu*/
/*.navbar {
display:flex;
justify-content: space-between;
align-items:center;
padding: 5px 5px
}
.logo img {
height: 100px;
}




/* Le menu parent doit être 'relative' menu horizontal */
/* Style de base pour enlever les puces */
/*nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position:sticky;
}

/* Alignement horizontal du menu principal */
.menu-principal > li {
  display: inline-block;
  position: relative; /* Référence pour le sous-menu */
  background:whitesmoke;
  position:sticky;
}

/* Le menu ne doit pas disparaitre au défilement */
.navbar{
position:sticky;
top:0;
z-index: index 1000;
background-color:#333;
padding:2px;
}

.menu-principal li a {
  display: block;
  padding: 10px 20px;
  color:black;
  text-decoration: none;
  position:sticky;
}

/* --- LE SOUS-MENU --- */
.sous-menu {
  display: none;          /* Caché par défaut */
  position: absolute;     /* Sort du flux normal */
  top: 100%;              /* Se place juste en dessous du parent */
  left: 0;
  background: #444;
  min-width: 150px;
}

/* Affichage vertical des éléments du sous-menu */
.sous-menu li {
  display: block;         /* Force l'empilement vertical */
  border-bottom: 1px solid #555;
}

/* Affichage au survol */
.has-children:hover .sous-menu {
  display: block;
  background:white;
}

/* Changement de couleur au survol */
.menu-principal li:hover {
  background:blanchedalmond;
}


#splash-screen {
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(12, 12, 12); /* Ou la couleur de votre choix */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#splash-screen img {
    max-width: 60%;
    height: auto;
}




footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

footer a {
  color: #fff;
  text-decoration: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 1vh;
  margin: 0;
}

footer {
  margin-top: auto; /* Pousse le footer vers le bas */
}




#hero-loader{
width: 100%;
overflow:hidden;
}

#hero-loader img{
width: 100%;
height: auto;
display: block;
}

/* S'assure que le corps prend toute la hauteur de la fenêtre */
html, body {
  height: 100%;
  margin: 0;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Utilise 100% de la hauteur de la fenêtre */
}

main {
  flex: 1; /* Pousse le footer vers le bas si le contenu est court */
}

footer {
  background: #333;
  color: white;
  padding: 1rem;
  text-align: center;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #333;
  color: white;
  text-align: center;
}