:root {
  --primary-color: #04699D;
  --secondary-color: #EF8635;
  --accent-color: #7EB5EE;
  --dark-color: #52482C;
}

body {
  /* font-family: 'Comic Sans MS', cursive, sans-serif; */

}

header {
  background-image: linear-gradient(to top, rgb(255, 255, 255), transparent), url('../images/background.webp');
  background-position: center;
  background-size: cover;
}

header {
  transition: background 0.3s ease;
}

/* Ajoutez ceci dans votre fichier assets/css/header.css */
header nav a {
  position: relative;
  padding-bottom: 5px;
  color: rgb(0, 0, 0) !important;
}

/* Animation du soulignement en vague */
header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  /* Courbure de vague */
}

header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Version pour le menu mobile */
#mobile-menu .menu-link {
  position: relative;
  padding-bottom: 8px;
}

#mobile-menu .menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

#mobile-menu .menu-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Supprimez l'ancien effet de couleur */
header nav a:hover,
select:hover,
#mobile-menu .menu-link:hover {
  color: inherit !important;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.9);
}

a {
  transition: color 0.3s ease;
  text-decoration: none;
  color: black;
}

a:hover,
select:hover {
  color: var(--primary-color) !important;
}

.form-select {
  background-color: transparent;
  color: dark;
  border: none;
}

.form-select:hover {
  color: var(--primary-color);
}

/* content section  */
.image-container-excursion {
  height: 60vh;
  background-image: url('../images/background.webp');
  background-size: cover;
  background-position: center;
}

/* menu  */
#toggle-menu {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
}

#mobile-menu a:hover {
  color: var(--secondary-color);
}

.demo-header {
  margin-bottom: 50px;
}

/* Menu Mobile amélioré */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('../images/background.webp');
  background-position: 20%;
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

#mobile-menu.active {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.menu-links {
  padding: 30px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-radius: 12px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.menu-link i {
  width: 35px;
  font-size: 1.4rem;
  transition: transform 0.3s;
}


.menu-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.5s ease;
}

.menu-link:hover::after {
  width: 100%;
}

.menu-footer {
  padding: 25px;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-select-container {
  position: relative;
  margin-top: 20px;
}

.lang-select-container i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.lang-select {
  width: 100%;
  padding: 16px 20px 16px 55px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.776);
  color: rgb(0, 0, 0);
  font-size: 1.1rem;
  appearance: none;
  transition: all 0.3s;
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(126, 181, 238, 0.2);
}

.lang-select option {
  background: white;
  color: rgb(0, 0, 0);
  padding: 10px;
}


/* Animation pour les liens */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-link {
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
}

.menu-link:nth-child(1) {
  animation-delay: 0.1s;
}

.menu-link:nth-child(2) {
  animation-delay: 0.2s;
}

.menu-link:nth-child(3) {
  animation-delay: 0.3s;
}

.menu-link:nth-child(4) {
  animation-delay: 0.4s;
}

.lang-select-container {
  animation: slideIn 0.5s ease-out 0.5s forwards;
  opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .demo-header h1 {
    font-size: 2.2rem;
  }

  .demo-header p {
    font-size: 1rem;
  }

  .menu-link {
    font-size: 1.2rem;
    padding: 15px;
  }
}