body {
  padding-top: 80px;
}

/* --- Barre de navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--fdnavbar);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* --- 4 colonnes principales --- */
.col {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Colonne 1 : logo */
.col-logo {
  flex: 0 0 auto;
  column-gap: 12px;
}

.col-logo img {
  height: 40px;
  width: auto;
}

.col-logo .sub-logo {
  align-items: center;
  gap: 8px;
}

.sub-logo h2 {
  color: var(--txtlogocolor);
  font-weight: 900;
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  font-style: normal;
  margin: 0;
}

/* Liens desktop */
.navbar .links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar .links li {
  list-style: none;
}

.buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* BOUTON HAMBURGER - caché par défaut */
.navbar .burger-menu-button {
  display: none !important;
  cursor: pointer;
  z-index: 10000;
  background: transparent;
  border: none;
  padding: 5px;
}

.navbar .burger-menu-button img {
  height: 30px;
  width: auto;
  display: block;
}

/* --------- MENU BURGER --------- */
/* --------- MENU BURGER --------- */
.burger-menu {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--fd-menu-burger);
  backdrop-filter: blur(15px);
  border-radius: 0;
  overflow: hidden;
  height: 0;
  z-index: 9999;
  transition: height 0.3s ease-in-out;
  display: none;
}

.burger-menu.open {
  height: auto !important;
  padding: 10px 0;
  /* Réduit de 20px à 10px */
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  display: block !important;
}

.burger-menu .links {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  /* Réduit de 5px à 2px */
  padding: 5px 20px;
  /* Réduit de 10px à 5px */
  background: transparent;
  margin: 0;
  list-style: none;
}

.burger-menu li {
  padding: 6px 0;
  /* Réduit de 12px à 6px */
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.burger-menu li:last-child {
  border-bottom: none;
}

.burger-menu li:hover {
  width: 100%;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
}

.burger-menu a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  /* Réduit de 1.1rem à 1rem */
  font-weight: 500;
  padding: 4px 20px;
  /* Réduit de 8px à 4px */
  width: 100%;
  text-align: center;
}

.burger-menu .diviser {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  width: 80%;
  max-width: 150px;
  margin: 5px auto;
  /* Réduit de 10px à 5px */
}

/* ---------- BOUTONS ---------- */
.agjbtn {
  padding: 5px 30px;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
}

.agjbtn:before {
  content: "";
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-agjbtn 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-agjbtn {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.agjbtn:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/* ---------- RESPONSIVE MOBILE ---------- */
@media (max-width: 768px) {
  .navbar .links {
    display: none !important;
  }

  .buttons {
    display: none !important;
  }

  .navbar .burger-menu-button {
    display: block !important;
  }

  .burger-menu {
    display: block !important;
  }

  .burger-menu.open {
    height: auto !important;
    padding: 20px 0;
  }

  /* Version mobile du thème toggle - intégré dans le menu */
  .burger-menu .theme-toggle-mobile {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    margin: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    width: calc(100% - 40px);
    transition: background 0.3s ease;
  }

  .burger-menu .theme-toggle-mobile:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .burger-menu .theme-toggle-mobile .icon {
    font-size: 20px;
  }
}