/* =========================
   MENU CONTAINER
========================= */
.menu-container {
  background: #000;
  padding: 10px 15px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* =========================
   TOP BAR (BURGER + ARIANE)
========================= */
.menu-top {
  display: flex;
  align-items: center;
  gap: 0; /* pas d'espace inutile */
  margin-top: 0;
}

/* =========================
   BURGER
========================= */
.burger {
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  display: none; /* affiché uniquement mobile */
  margin-right: 8px;
}

/* =========================
   NAV DESKTOP
========================= */
.nav-links {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

/* =========================
   MENU ITEMS
========================= */
.nav-links li {
  position: relative;
  text-align: center;
}

.menu-icon img {
  display: block;
  margin: auto;
}

.menu-link {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px;
  font-size: 14px;
}

/* =========================
   SOUS-MENU DESKTOP
========================= */
.sous {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  list-style: none;
  min-width: 220px;
  z-index: 1000;
}

.sous li a {
  display: block;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.sous li a:hover {
  background: #333;
}

/* Hover desktop */
@media (min-width: 901px) {
  .deroulant:hover .sous {
    display: block;
  }

  /* desktop : fil d’Ariane sous le menu */
  .menu-top {
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 4px; /* petit espacement esthétique */
  }

  /* fil d’Ariane : chevrons visibles */
  .breadcrumb-left a::after {
      content: "›";
      margin: 0 6px;
      color: #999;
  }

  .breadcrumb-left span.courant {
      font-weight: 700;
      color: #111;
      background: #e8f2ff;
      padding: 4px 10px;
      border-radius: 6px;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {

  .burger {
    display: block;
  }

  /* burger + ariane côte à côte */
  .menu-top {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  /* fil d’Ariane compact */
  .breadcrumb-bar {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .breadcrumb-left a {
    display: none; /* ne montre pas les liens, que le dernier élément */
  }

  /* supprime les chevrons en mobile */
  .breadcrumb-left a::after {
    content: none !important;
  }

  .breadcrumb-left span:last-child,
  .breadcrumb-left span.courant {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
  }

  .breadcrumb-right {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-top: 1px solid #222;
  }

  .menu-icon img {
    height: 50px;
  }

  /* sous-menu slide mobile */
  .sous {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #111;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    display: block;
    z-index: 2000;
  }

  .deroulant.open .sous {
    transform: translateX(0);
  }

  .sous .back {
    display: block;
    padding: 15px;
    background: #000;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid #222;
  }
}

/* ==== FORCE réduction icônes du menu (desktop + mobile) ==== */

/* Icônes image */
.nav-links .menu-icon img,
.nav-links .menu-icon svg,
.nav-links .menu-icon .icon-img {
  width: 40px !important;     /* <-- ajuste ici */
  height: 40px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Icônes emoji/texte */
.nav-links .menu-icon,
.nav-links .menu-icon span,
.nav-links .menu-icon i {
  font-size: 28px !important;  /* <-- ajuste ici */
  line-height: 1 !important;
}

/* Si ton cercle a une taille fixe, on centre tout */
.nav-links li .menu-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
