/* Style de base du menu */
.navbar {
  display: flex;
  gap: 40px;
  padding: 20px;
  background-color: #f4eee0;
  justify-content: center;
}

/* Texte au-dessus */
.link-text {
  position: relative;
  z-index: 2; /* devant l'image */
  transition: color 0.3s ease;
}

.nav-link.active {
  color: white;
  pointer-events: none; /* empêche le clic */
}

/* Texte devient blanc au survol */
.nav-link:hover .link-text {
  color: white;
}

.logo-link.disabled {
  pointer-events: none;  /* Désactive le clic */
}

/* Image derrière */
.hover-image {
  position: absolute;
  top: -35px;
  left: 0;
  width: 100%;
  height: 155%;
  background-size: cover;       /* adapte l'image pour qu'elle soit entièrement visible */
  background-repeat: no-repeat;   /* évite de répéter l'image */
  background-position: center;    /* centre l'image dans le conteneur */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px); /* on part légèrement en haut */
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1; /* entre le lien et le texte */
  border-bottom-left-radius: 15px;  /* Arrondi en bas à gauche */
  border-bottom-right-radius: 15px; /* Arrondi en bas à droite */
  overflow: visible; /* autoriser le débordement */
}

/* Image visible au survol et block lorsqu'elle est active */
.nav-link:hover .hover-image, .hover-image.visible {
  opacity: 1;
  display: block;
  transform: translateY(0); /* slide vers le bas */
}

/* Images différentes */
.image-accueil {background-image: url('../img/menu/Image_Accueil.png');}
.image-portrait {background-image: url('../img/menu/Image_Portrait.png');}
.image-services {background-image: url('../img/menu/Image_Services.png');}
.image-projets {background-image: url('../img/menu/Image_Projets.png');}
.image-contact {background-image: url('../img/menu/Image_Contact.png');}

@font-face {
  font-family: 'NaomisHand-Regular';
  src: url('../fonts/NaomisHand-Regular.ttf') format('truetype');
  font-style: normal;
}

.police {
  font-family: 'NaomisHand-Regular', sans-serif;
  font-size: 50px;
}

.logo {
  padding-top: 40px;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.img {
  transition: transform 0.4s ease;
  cursor: pointer;
}
.img:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== NAVBAR ===== */
.navbar {
  position: relative;
  padding: 20px;
  background-color: #f4eee0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== BOUTON BURGER ===== */
.burger {
  width: 35px;
  height: 25px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* Caché par défaut — visible que sur mobile */
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 35px; /* largeur totale du bouton */
  height: 3px;
  background-color: #405d47;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center; /* pivot au centre */
}

/* Animation croix */
.burger.active span:nth-child(1) {
  transform: rotate(40deg);
  transform-origin: top left; /* pivot au coin supérieur gauche */
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-40deg);
  transform-origin: bottom left; /* pivot au coin inférieur gauche */
}


/* ===== MENU MOBILE ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #94a988;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 1000;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-menu ul li {
  margin: 20px 0;
}

.mobile-menu ul li a {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: #405d47;
}

/* ===== MENU DESKTOP ===== */
.desktop-menu {
  display: flex;
}

.desktop-menu a {
  text-decoration: none;
  color: #405d47;
  font-weight: 500;
  transition: color 0.3s ease;
}

.desktop-menu a:hover {
  color: #94a988;
}

/* ===== RESPONSIVE ===== */

/* Sur mobile : affiche burger et cache desktop */
@media (max-width: 1365px) {
  .burger {
    display: flex; /* visible */
  }

  .desktop-menu {
    display: none !important; /* caché */
  }
  .logo-desktop {
    display: none !important;
  }

  .nav-link {
    position: relative;
    text-decoration: none;
    display: inline-block;
    color: #405d47;
    transition: color 0.3s ease;
    z-index: 0; /* élément de base */
  }

  .logo {
  transition: transform 0.4s ease;
  cursor: pointer;
  padding: 0;
}

.logo:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

}

/* Sur desktop : cache le menu mobile */
@media (min-width: 1366px) {
  .mobile-menu {
    display: none !important;
  }

.nav-link {
  padding-top: 50px;
  padding-right: 40px;
  padding-left: 40px;
  position: relative;
  text-decoration: none;
  display: inline-block;
  color: #405d47;
  transition: color 0.3s ease;
  overflow: visible; /* hidden pour éviter que l'image dépasse */
  z-index: 0; /* élément de base */
}
}

.mobile-menu ul li a.active {
  color: #405d47;       /* texte différent */
}