/* -- HEADER & NAVIGATION -- */
.iconcontainer {
     display: flex;
     justify-content: flex-end;
     padding: 1rem 2rem;
     gap: 1rem;
}

.iconcontainer img {
     width: 30px;
     height: 30px;
}

.nav {
     margin-bottom: 5rem;
     position: relative;
     z-index: 10;
}

.backgroundnavbar {
     background-color: var(--bg-secondary);
     max-width: 1000px;
     margin: 0 auto;
     border-radius: 50px;
     max-height: 90px;
     box-shadow: 1px 1px 10px var(--bg-secondary);
}

.navbar {
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 4rem;

}

.navbar .feuille1,
.navbar .feuille2 {
     width: 50px;
     height: auto;
}

.navbar .feuille2 {
     transform: scaleX(-1);
     /* Retourne la feuille proprement */
}

.navbar .serv1,
.navbar .proj1 {
     font-size: 2rem;
     /* 32px */
     font-weight: 500;
}

.navbar .bust1 {
     height: 120px;
     width: auto;
     max-height: 90px;
}


/** Responsive Design*/

@media (max-width: 1200px) {
     .backgroundnavbar {
          max-width: 100%;
          margin: 0 2rem;
     }

     .navbar {
          gap: 1rem;
     }
}

@media (max-width: 768px) {
     .iconcontainer {
          justify-content: center;
          padding: 1rem;
     }

     .backgroundnavbar {
          margin: 0 1.5rem;
          border-radius: 35px;
     }

     .navbar {
          flex-wrap: wrap;
          gap: 1rem;
     }

     .navbar .serv1,
     .navbar .proj1 {
          font-size: 1.5rem;
     }

     .navbar .bust1 {
          height: 90px;
     }

     .navbar .feuille1,
     .navbar .feuille2 {
          width: 40px;
     }
}

@media (max-width: 576px) {
     .iconcontainer {
          justify-content: space-between;
          padding: 0.5rem 1rem;
          align-items: center;
     }

     .backgroundnavbar {
          display: none;
     }

     .dropmenu {
          width: 30px;
          height: 30px;
          cursor: pointer;
          transition: transform 0.3s ease;
     }

     .dropmenu-show {
          transform: rotate(90deg);
     }

     .dropnav {
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          background-color: var(--bg-secondary);
          padding: 1rem;
          margin: 0;
          border-radius: 0 0 15px 15px;
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
     }

     .dropnav a {
          color: var(--text-primary);
          text-decoration: none;
          padding: 0.5rem 1rem;
          border-radius: 8px;
          transition: background-color 0.2s ease;
     }

     .dropnav a:hover {
          background-color: rgba(255, 255, 255, 0.1);
     }

     .nav {
          margin-bottom: 2rem;
     }
}

@media (min-width: 577px) {
     .dropmenu {
          display: none;
     }
}

/** Drop menu for responsive design*/

@media (min-width: 581px) {
     .dropmenu, .dropnav {
          display: none;
     }
}



.dropnav {
     display: flex;
     flex-direction: column;
     gap: 1rem;
     margin-left: 15px;
     opacity: 0;
     max-height: 0;
     overflow: hidden;
     transition: all 0.3s ease-in-out;
     transform: translateY(-10px);
     
}
.dropnav-show {
     display: flex;
     flex-direction: column;
     gap: 1rem;
     margin-left: 15px;
     opacity: 1;
     max-height: fit-content;
     transform: translateY(0);
}

.dropnav a {
     font-size: 1.25rem;
}

.dropmenu {
     width: 50px;
     height: auto;
     transform: scale(1);
     transition: all 0.2 ease-in-out;
}
.dropmenu-show {
     width: 50px;
     height: auto;
     transform: scale(1.2);   
}
