/* =========================================================
   FICHIER 1 — assets/css/Nav_bar_index.css
   ========================================================= */

:root {
  --nav-height: 96px;
  --nav-bg-start: #af804e;
  --nav-bg-mid: #8f6236;
  --nav-bg-end: #6e4726;
  --nav-white: #fff;
  --nav-radius: 10px;
  --nav-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.navbar,
.navbar * {
  box-sizing: border-box;
}

.navbar {
  width: 100%;
  min-height: var(--nav-height);
  padding: 0 clamp(18px, 4vw, 46px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  position: relative;
  z-index: 1000;

  background: linear-gradient(135deg, var(--nav-bg-start), var(--nav-bg-mid), var(--nav-bg-end));
  box-shadow: var(--nav-shadow);
  overflow-x: clip;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.navbar-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.navbar-logo img {
  width: auto;
  height: 138px;
  max-width: 220px;
  display: block;
  object-fit: contain;
  margin-top: 10px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28));
}

.navbar-liens {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.6vw, 22px);
  min-width: 0;
}

.navbar-liens a {
  min-height: 100px;
  padding: 8px 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--nav-white);
  text-decoration: none;

  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 800;

  border-radius: var(--nav-radius);
  white-space: nowrap;

  transition: background-color 0.2s ease, transform 0.15s ease;
}

.navbar-liens a:hover {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.navbar-burger {
  display: none;
  width: 46px;
  height: 46px;

  border: none;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.16);
  color: var(--nav-white);

  font-size: 30px;
  line-height: 1;
  cursor: pointer;

  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.navbar-burger:hover {
  background: rgba(255, 255, 255, 0.24);
}

.navbar-menu-mobile {
  position: fixed;
  top: 0;
  left: 0;

  width: 280px;
  max-width: 72vw;
  height: 100dvh;

  padding: 24px 18px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  background: linear-gradient(180deg, var(--nav-bg-start), var(--nav-bg-mid), var(--nav-bg-end));
  box-shadow: 14px 0 40px rgba(0, 0, 0, 0.28);

  transform: translateX(-105%);
  transition: transform 0.25s ease;

  z-index: 99999;
  overflow-y: auto;
  overflow-x: hidden;
}

.navbar-menu-mobile.open {
  transform: translateX(0);
}

.navbar-menu-mobile a {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--nav-white);
  text-decoration: none;

  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;

  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.navbar-menu-mobile a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.navbar-fermer {
  margin-top: auto;
  width: 100%;
  min-height: 48px;

  border: none;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.16);
  color: var(--nav-white);

  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .navbar-liens {
    gap: 10px;
  }

  .navbar-liens a {
    padding: 8px 10px;
  }

  .navbar-logo img {
    height: 138px;
    max-width: 220px;
  }

}

@media (max-width: 768px) {
  :root {
    --nav-height: 84px;
  }

  .navbar {
    min-height: var(--nav-height);
    justify-content: flex-start;
    padding: 0 16px;
  }

  .navbar-liens {
    display: none;
  }

  .navbar-burger {
    display: inline-flex;
  }

  /* Cache complètement le logo */
  .navbar-logo {
    display: none;
  }

  .navbar-menu-mobile {
    width: 260px;
    max-width: 78vw;
  }
}

@media (max-width: 420px) {
  :root {
    --nav-height: 78px;
  }

  .navbar {
    padding: 0 12px;
  }

  .navbar-burger {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .navbar-menu-mobile {
    width: 240px;

    max-width: 72vw;
  }
}