@import url("./base.css");
/* **************************** header *********************************/

.header-top {
    width: 100%;
    display: flex;
    justify-content: end;
    height: 60px;
    background-color: var(--clr-blue-2);
    z-index: 100; /* Augmenter */
    position: relative;
   
}



.content-orange {
    padding-right: 30px;

display: flex;
align-items: center;
justify-content: end;
gap: 10px;
    width: 30%;
    background-color: var(--clr-orange);
   
  overflow: visible !important;
  position: relative;
}

.content-orange::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50px;
  right: 0;
  bottom: 0;
  background: var(--clr-orange);
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
  width: calc(100% + 50px);
}
img.facebook{
  width: 26px;
}

img.twitter {
  width: 31px;
  /* background-color: aquamarine; */

}


.header-bottom{
    height: 100px;
    background-color: white;
    z-index: 50; /* Réduire */
    position: relative; /* Important */
    overflow: visible !important;
 
}

.header-bottom container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;  
}



.header-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
  }
  
  .logo img {
    width: 70px;
  }
  
  .navbar {
    display: flex;
  }
  
  .nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  
  .nav-list li {
    position: relative;
  }
  
  .nav-list a {
 
    text-decoration: none;
    padding: 8px;
    transition: color 0.3s;
    font-size: 18px;
    font-family: var(--ff-tertiary);

  }
  .nav-list a:active {
    color: var(--clr-orange); /* secondary color */
    
  }
  
  .nav-list a:hover {
    color: var(--clr-orange); /* secondary color */
  }

  /* **************************** DROPDOWN IMPROVEMENTS *********************************/
.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease-in-out; /* Ajout d'une animation */
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  top: calc(100% + 5px); /* Espacement supplémentaire */
  left: 0;
  width: 240px; /* Largeur légèrement augmentée */
  text-align: left;
  z-index: 20;
  border-radius: 8px; /* Bords arrondis */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Ombre plus prononcée */
  border: 1px solid rgba(0,0,0,0.05); /* Bordure subtile */
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu::before { /* Flèche décorative */
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-left: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  transition: all 0.3s;
  font-size: 15px;
  color: black; /* Couleur principale */
  border-bottom: 1px solid rgba(0,0,0,0.05); /* Séparateur plus subtil */
  position: relative;
  font-family: var(--ff-tertiary);
 
}

.dropdown-menu li:last-child a {
  border-bottom: none; /* Supprime le séparateur sur dernier élément */
}

.dropdown-menu li a:hover {
  background-color: rgba(var(--clr-orange-rgb), 0.08); /* Fond orange très léger */
  color: var(--clr-orange); /* Orange plus vif au survol */
  padding-left: 25px; /* Effet de décalage */
}

.dropdown-menu li a:hover::before { /* Effet de ligne décorative */
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--clr-orange);
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Améliorations pour le mode mobile */
@media screen and (max-width: 1024px) {
  .dropdown-menu {
      box-shadow: none;
      border: none;
      width: 100%;
      position: static;
      background: rgba(0,0,0,0.02);
  }

  .dropdown-menu li a {
      border-bottom: none;
      padding: 10px 15px;
  }

  .dropdown-menu::before {
      display: none;
  }
}


  
  header .btn {
    padding: 10px 30px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    font-family: var(--ff-tertiary);

  }
  
  .btn.contact {
 background-color: var(--clr-blue-2);
    color: white;
 
  }
  
  
  

  

/* Responsive */
/* Hide burger button on desktop */
.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--clr-blue-2);
  cursor: pointer;
  position: relative;
  z-index: 20;
}

.mobile-menu .close-icon {
  display: none;
}

.mobile-menu.active .open-icon {
  display: none;
}

.mobile-menu.active .close-icon {
  display: block;
}


/* Navigation wrapper hidden by default on mobile */
.nav-wrapper {
  display: flex;
  gap: 20px;
}

/* --- Ajouts pour le responsive sans toucher au style desktop --- */
.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--clr-blue-2);
  cursor: pointer;
}

/* Wrapper qui contient nav + actions */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media screen and (max-width: 1368px) {
  .nav-list a {
 
    font-size: 16px;
}
}

/* Responsive uniquement sous 1024px */
@media screen and (max-width: 1024px) {
  .mobile-menu {
    display: block;
  }

  .nav-wrapper {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: white;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 20px 40px;
  }

  .nav-wrapper.active {
    display: flex;
  }

  .navbar {
    width: 100%;
  }

  .nav-list {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    width: 100%;
    display: block;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background: transparent;
    padding-left: 10px;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .actions .btn {
    width: 100%;
  }

  .content-orange {
    width: 40%;
  }
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
  .mobile-menu {
    display: block;
  }

  .nav-wrapper {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    display: none;
    z-index: 10;
  }

  .nav-wrapper.active {
    display: flex;
  }

  .navbar {
    flex-direction: column;
    width: 100%;
  }

  .nav-list {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    border: none;
    width: 100%;
    background: transparent;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    border: none;
    background-color: #f5f5f5;
  }

  .actions {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
}


.language-selector {
 
  margin-left: 20px;
  cursor: pointer;
  color: white;
  font-weight: 500;


}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-selector .flag {
  width: 28px;

  border-radius: 50%;
  object-fit: cover;
}

.language-selector .arrow {
  font-size: 12px;
}

/* Dropdown caché par défaut */
.language-dropdown {
 
  
  display: none;
  position: absolute;
  top: calc(100% + 10px); /* Ajuster l'écart */
  left: -15px;
  background: white;
  border-radius: 6px;
  padding: 10px 0;
  margin-top: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 200; /* au-dessus des deux */
  width: 130px;


}

.language-dropdown li {
 
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  cursor: pointer;
  color: black;
  font-size: 14px;
}

.language-dropdown li:hover {
  background: var(--clr-orange);
}

.language-dropdown img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.language-dropdown.active {
  display: block;
  animation: dropdownSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlide {
  0% {
      opacity: 0;
      transform: translateY(-20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}
.language-selector {
  position: relative;
  z-index: 1001;
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -15px;
  background: white;
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  width: 140px;
  z-index: 200;
}


.language-dropdown.show {
  display: block;
  animation: slideDown 0.3s ease;
}

.language-wrapper {
  position: static !important; /* Reset du positioning */
}

@media screen and (max-width: 768px) {
  .content-orange {
    width: 60%;
  }
}