/* Navbar - Liquid Glass Effect */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: var(--glass-border);
  padding: 0 2rem;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-navbar);
  box-shadow: var(--glass-shadow);
}

/* Effet de brillance subtil */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  animation: shine 6s infinite;
}

@keyframes shine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--color-gold));
}

/* Menu Desktop */
.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar-menu > li {
  position: relative;
}

.navbar-menu > li > a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.5rem 1rem;
  display: block;
  transition: var(--transition-smooth);
  position: relative;
}

.navbar-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.navbar-menu > li > a:hover::after {
  width: 80%;
}

.navbar-menu > li > a:hover {
  color: var(--color-gold);
}

/* Sous-menu */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(15px);
  list-style: none;
  padding: 1rem 0;
  min-width: 280px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-menu > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li a {
  color: var(--color-text-light);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  display: block;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.submenu li a:hover {
  background: rgba(127, 111, 75, 0.2);
  color: var(--color-gold);
  padding-left: 2rem;
}

/* Indicateur de sous-menu */
.has-submenu > a::before {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 0.5rem;
  opacity: 0.7;
}

/* Icônes sociales */
.social-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-icons a {
  color: white;
  font-size: 1.4rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
  background: rgba(127, 111, 75, 0.3);
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(127, 111, 75, 0.3);
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: var(--z-burger);
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu Mobile */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: var(--mobile-menu-width);
  height: 100vh;
  background: var(--color-dark-bg);
  backdrop-filter: var(--backdrop-blur);
  padding: 100px 2rem 2rem;
  transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: var(--z-mobile-menu);
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

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

.mobile-menu ul {
  list-style: none;
}

.mobile-menu > ul > li {
  margin-bottom: 0.5rem;
}

.mobile-menu > ul > li > a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 1rem;
  display: block;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.mobile-menu > ul > li > a:hover {
  background: rgba(127, 111, 75, 0.2);
  color: var(--color-gold);
  padding-left: 1.5rem;
}

/* Sous-menu mobile */
.mobile-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 1rem;
}

.mobile-submenu.active {
  max-height: 300px;
}

.mobile-submenu li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.8rem 1rem;
  display: block;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.mobile-submenu li a:hover {
  color: var(--color-gold);
  padding-left: 1.5rem;
}

.mobile-menu .has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu .has-submenu > a::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.mobile-menu .has-submenu.active > a::after {
  transform: rotate(45deg);
}

/* Icônes sociales mobile */
.mobile-social-icons {
  display: none;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

.mobile-social-icons a {
  color: white;
  font-size: 1.4rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-social-icons a:hover {
  background: rgba(127, 111, 75, 0.3);
  border-color: var(--color-gold);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(127, 111, 75, 0.3);
}

.mobile-social-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.mobile-social-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Icône login pour mobile */
.login-icon-mobile {
  display: none;
  margin-left: auto;
  margin-right: 1rem;
}

.login-icon-mobile a {
  color: white;
  font-size: 1.3rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-icon-mobile a:hover {
  background: rgba(127, 111, 75, 0.3);
  border-color: var(--color-gold);
  transform: scale(1.1);
}

/* Bulle espace personnel - Effet beige crème */
.login-tooltip {
  position: fixed;
  top: 95px;
  right: 30px;
  background: #F5F5DC;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.7rem 1.3rem;
  border-radius: 20px;
  border: 1.5px solid #D4C4A8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
              0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: var(--z-tooltip);
  transition: var(--transition-fade);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
}

.login-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.login-tooltip.hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.92);
}

/* Pointe de la bulle en haut */
.login-tooltip::before {
  content: '';
  position: absolute;
  top: -11px;
  right: 18px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 9px 12px 9px;
  border-color: transparent transparent #F5F5DC transparent;
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

/* Reflet de lumière sur la bulle */
.login-tooltip::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    transparent 70%);
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

.login-tooltip-text {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: #3a3a3a;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.login-tooltip-highlight {
  color: #8B4513;
  font-weight: 700;
}
