/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Main header styles */
.main-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Logo styles */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 45px;
  width: auto;
}

/* Desktop navigation - hidden by default */
.desktop-nav {
  display: none;
  flex: 1;
  margin-left: 40px;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.desktop-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: #f39c12;
}

/* Desktop buttons - hidden by default */
.desktop-buttons {
  display: none;
  gap: 15px;
  align-items: center;
}

.connexion-btn {
  padding: 8px 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.connexion-btn:hover {
  border-color: #f39c12;
  color: #f39c12;
}

.inscription-btn {
  padding: 8px 20px;
  background: #f39c12;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.inscription-btn:hover {
  background: #e67e22;
}

/* Header right (profile area) */
.header-right {
  display: flex;
  align-items: center;
}

.profile-link,
.login-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ccc;
  display: block;
}

/* Burger menu */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.burger span {
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger:hover span {
  background: #f39c12;
}

/* Mobile navigation */
.mobile-nav {
  display: none;
  background: white;
  border-top: 1px solid #eee;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background 0.3s ease;
}

.mobile-nav a:hover {
  background: #f8f8f8;
  color: #f39c12;
}

/* Mobile-first responsive design */
@media (max-width: 767px) {
  /* Mobile styles - burger menu visible, desktop nav hidden */
  .burger {
    display: flex;
    order: 1;
  }
  
  .logo-link {
    order: 2;
    flex: 1;
    justify-content: center;
  }
  
  .header-right {
    order: 3;
  }
  
  .desktop-nav {
    display: none !important;
  }
  
  .desktop-buttons {
    display: none !important;
  }
  
  .header-content {
    padding: 10px 15px;
  }
  
  .logo-img {
    height: 40px;
  }
}

/* Desktop styles */
@media (min-width: 768px) {
  .header-content {
    padding: 15px 30px;
  }
  
  .burger {
    display: none !important;
  }
  
  .desktop-nav {
    display: flex !important;
  }
  
  .desktop-buttons {
    display: flex !important;
  }
  
  .header-right {
    display: none;
  }
  
  .mobile-nav {
    display: none !important;
  }
  
  .logo-link {
    order: unset;
    flex: unset;
    justify-content: flex-start;
  }
}

/* Large desktop styles */
@media (min-width: 1024px) {
  .header-content {
    padding: 20px 40px;
  }
  
  .desktop-nav {
    margin-left: 60px;
  }
  
  .desktop-nav ul {
    gap: 40px;
  }
  
  .logo-img {
    height: 50px;
  }
}