/* === RESET MARGINS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =================================================================== A NE PAS TOUCHER ======================================================================================== */

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #F8EACE;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

/* === LOGO === */
.logo img {
  height: 50px;
}

/* === NAVIGATION DESKTOP === */
.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #000;
  font-family: 'PlusJakartaSans-Regular', sans-serif;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.main-nav a:hover {
  color: #9F02BE;
}

/* === THEME TOGGLE === */
.theme-toggle {
  position: relative;
  width: 70px;
  height: 35px;
  background-color: #9F02BE; /* neon pink en light mode */
  border: none;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 3px;
  transition: background-color 0.3s ease;
}

.theme-toggle .toggle-sun,
.theme-toggle .toggle-moon {
  font-size: 20px;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.theme-toggle .toggle-sun {
  margin-left: 8px;
  color: #000; /* black sun in light mode */
}

.theme-toggle .toggle-moon {
  margin-left: auto;
  margin-right: 8px;
  color: #fff; /* white moon in light mode */
}

.theme-toggle .toggle-slider {
  position: absolute;
  top: 3.5px; /* centré verticalement */
  left: 3px;
  width: 28px;
  height: 28px;
  background-color: #fff; /* thumb blanc */
  border-radius: 50%;
  border: 1px solid #000; /* contour noir */
  transition: transform 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

/* === MENU BURGER === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle .burger {
  width: 100%;
  height: 3px;
  background-color: #9F02BE; /* neon pink pour light mode */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none;
  width: 100%;
  background-color: #F8EACE;
  transform: translateY(-100%);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  padding: 1rem 0;
}

.mobile-menu li {
  text-align: center;
  margin: 1rem 0;
}

.mobile-menu a {
  text-decoration: none;
  font-family: 'PlusJakartaSans-Regular', sans-serif;
  font-size: 1.2rem;
  color: #000;
  transition: color 0.3s ease;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .header-container {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  /* Center the theme toggle on mobile */
  .theme-toggle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* =================================================================== A NE PAS TOUCHER ======================================================================================== */
