/* Styles pour le header moderne */

/* Structure principale du header */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 20px 0;
}

.modern-header.sticky {
  padding: 15px 0;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo-container {
  flex: 0 0 auto;
}

.logo {
  display: block;
}

.main-logo {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.sticky .main-logo {
  height: 35px;
}

/* Navigation principale */
.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  position: relative;
  margin: 0 15px;
}

.nav-list li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 5px;
  display: block;
  position: relative;
  transition: all 0.3s ease;
}

.sticky .nav-list li a {
  color: #333;
}

.nav-list li.active a {
  color: #fff;
  font-weight: 600;
}

.sticky .nav-list li.active a {
  color: #333;
}

.active-indicator {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.sticky .active-indicator {
  background-color: #333;
}

.nav-list li a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.sticky .nav-list li a:hover {
  color: rgba(51, 51, 51, 0.8);
}

/* Bouton CTA */
.cta-button {
  flex: 0 0 auto;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.sticky .btn-primary-action {
  background-color: rgba(51, 51, 51, 0.05);
  color: #333;
  border: 1px solid rgba(51, 51, 51, 0.2);
}

.btn-primary-action i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-primary-action:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.sticky .btn-primary-action:hover {
  background-color: rgba(51, 51, 51, 0.1);
}

.btn-primary-action:hover i {
  transform: translateX(3px);
}

/* Bouton du menu mobile */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.25s ease-in-out;
}

.sticky .mobile-menu-toggle span {
  background: #333;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0px;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 20px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-menu-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-logo {
  height: 30px;
  width: auto;
}

.close-mobile-menu {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

.mobile-nav {
  padding: 20px;
}

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

.mobile-nav-list li {
  margin-bottom: 15px;
}

.mobile-nav-list li a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-list li.active a {
  color: #333;
  font-weight: 600;
}

.mobile-cta {
  margin-top: 30px;
}

.btn-primary-action.mobile {
  width: 100%;
  justify-content: center;
  background-color: #333;
  color: #fff;
  border: none;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Media queries */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 767px) {
  .modern-header {
    padding: 15px 0;
  }
  
  .main-logo {
    height: 30px;
  }
}
