
/* === NAVBAR RESPONSIVE AVEC MODE CLAIR/SOMBRE === */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --nav-bg: #ffffff;
  --nav-text: #111111;
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #f1f1f1;
  --nav-bg: #1f1f1f;
  --nav-text: #f1f1f1;
}

nav {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--nav-bg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 999;
}

.logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--nav-text);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: var(--nav-text);
  margin: 4px 0;
  transition: 0.4s;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    flex-direction: column;
    align-items: center;
    gap: 15px;
    display: none;
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}
