/* ==========================================================================
   1. RESET & VARIABLES GLOBALES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #f6f5f3;
  --bg-dropdown: #ffffff;
  --text-main: #2c2c2c;
  --text-accent: #8b1c55;
  --font-main: "Cormorant Garamond", serif;
  --nav-height: 80px;
}

body {
  background-color: var(--bg-color);
  font-family: var(--font-main);
  color: var(--text-main);
}

/* ==========================================================================
   2. NAVBAR STRUCTURE (DESKTOP PAR DEFAUT)
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  height: var(--nav-height);
  background-color: var(--bg-color);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 100;
  gap: 40px;
}

.navbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-logo img {
  height: 45px;
  width: auto;
  display: block;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar-nav {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.navbar-nav > li > a,
.dropdown-toggle {
  text-decoration: none;
  color: var(--text-main);
  font-size: 19px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding-bottom: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.navbar-nav a:hover,
.dropdown:hover .dropdown-toggle {
  color: var(--text-accent);
}

.navbar-nav > li > a.active {
  border-bottom: 1.5px solid var(--text-main);
}

/* ==========================================================================
   3. DROPDOWNS (SOUS-MENUS DESKTOP)
   ========================================================================== */
.dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-toggle.no-arrow svg.arrow-icon {
  display: none;
}

.arrow-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.dropdown:hover .arrow-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 35px;
  left: 0;
  background-color: var(--bg-dropdown);
  min-width: 240px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 10px 0;
  list-style: none;
}

.dropdown-menu-right {
  left: auto;
  right: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  padding: 12px 20px;
  display: block;
  font-size: 17px;
  color: var(--text-main);
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
  white-space: normal;
}

.dropdown-menu li a:hover {
  background-color: #fbfbfb;
  color: var(--text-accent);
}

/* ==========================================================================
   4. ICONES DROITE
   ========================================================================== */
.kebab-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.navbar-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  padding: 5px;
}

.icon-btn:hover {
  transform: scale(1.1);
  color: var(--text-accent);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.burger-btn {
  display: none;
}

/* ==========================================================================
   5. RESPONSIVE NAVBAR (MOBILE BURGER)
   ========================================================================== */
@media (max-width: 1450px) {
  .navbar {
    padding: 0 20px;
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-dropdown);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav.open {
    display: flex;
  }

  .navbar-nav > li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  .navbar-nav > li > a,
  .dropdown-toggle {
    width: 100%;
    padding: 15px 20px;
    justify-content: space-between;
    border-bottom: none !important;
  }

  .dropdown {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

  .dropdown:hover .arrow-icon {
    transform: none;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    background-color: #fcfcfc;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }

  .dropdown.open .arrow-icon {
    transform: rotate(180deg);
  }

  .dropdown-menu li a {
    padding: 12px 20px 12px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
  }

  .burger-btn {
    display: flex;
  }

  .grid-trigger,
  .search-trigger {
    display: none;
  }
}
