
/* Mise en page de base */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}


/* couleur de fond */
body {
  background-color: rgb(21, 20, 20);
  display: flex;
  flex: 1;
  flex-direction: column;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/*style globale par zone*/ 
header, nav, section, footer {
  color: white;
  text-align: center;
  align-content: center;
}

/* style header*/
header {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 5vh;
  height: 10vh;
}

nav {
  height: 5vh;
}

.nav-link {
  color: white !important;
  font-weight: bold;
}

section {
  color: white;
  text-align: center;
  padding: 2rem 0;
  flex-grow: 1;
}

#main-content {
  flex-grow: 1;
}

footer {
  height: 10vh;
  margin-top: auto;
}

a {
  color: white; /* or any other color, like #ddd, #ccc, violet, etc. */
  text-decoration: none; /* removes the underline */
  font-weight: normal; /* optional: remove browser-bold */
}

a:hover {
  color: #ccc; /* color on hover */
  text-decoration: none; /* or none, or a custom underline effect */
}

/* Nouveau dropdown custom */
.custom-dropdown {
  position: relative;
}

/* Style du menu déroulant */
.custom-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.4s ease;

  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px); /* petit slide vers le bas */
  margin-top: 80px; /* ✅ crée l'espace entre "Works" et le menu */

  background-color: rgb(21, 20, 20, 0.1);
  border: none;
  z-index: 20;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: left;
  
  
}

.custom-dropdown:hover .custom-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0); /* effet glissant */
}



.custom-item {
  display: block;
  padding: 12px 20px;
  color: white;
  font-weight: normal;
  text-decoration: none;
  transition: font-weight 0.2s ease;
  background-color: transparent;
  text-align: left;
  padding: 12px 20px;
}

/* Apparence des liens au survol */
.custom-item:hover {
  font-weight: bold;
  color: white;
  background-color: transparent;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.img-small {
  width: 100vh;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 1rem;
}

.container-fluid {
  height: 100vh;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Animation classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.fade-out {
  opacity: 1;
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
    }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
    from { opacity: 1;
    }
  to {
    opacity: 0;
  }
}
