.header4 {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(102, 102, 102, 1) 0%, rgba(31, 31, 31, 1) 100%);
  color: #000;
  padding: 0 5px 0 0;
  gap: 6px;
  flex-wrap: nowrap;
  border-radius: 0 5px 5px 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  white-space: nowrap;
}

.header4-0 {
  position: relative;
  background-color: #4ba2e9;
  padding: 8px 12px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  user-select: none;

  flex: 0 1 auto;         /* taille naturelle, mais peut rétrécir */
  max-width: 20px;       /* réduit pour mobile */
  min-width: 20px;        /* taille mini */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Menu déroulant masqué par défaut */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;       /* juste en dessous du bouton */
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  padding: 8px 0;
  min-width: 120px;
  z-index: 1000;
}

/* Affiche le menu au hover sur header4-0 */
.header4-0:hover .dropdown-menu {
  display: block;
}

/* Style des liens du menu */
.dropdown-menu a {
  display: block;
  padding: 6px 12px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #4ba2e9;
  color: white;
}

/* total - header4-1 */
.header4-1 {
  padding: 6px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;

  flex: 0 0 90px;       /* largeur fixe, ne rétrécit pas */
  min-width: 90px;
  justify-content: center;
  color: #000;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #e0e0e0;
}

/* autres blocs */
.header4-2,
.header4-3,
.header4-4,
.header4-5,
.header4-6 {
  padding: 6px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;

  flex: 1 1 auto;
  min-width: 70px;
  justify-content: center;
  color: #000;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.header4-2 i,
.header4-3 i,
.header4-4 i,
.header4-5 i,
.header4-6 i {
  font-size: 1rem;
}

/* Responsive - mobile */
@media (max-width: 768px) {
  .header4 {
    font-size: 0.75rem;
    gap: 4px;
  }

  .header4-0 {
    max-width: 100px;   /* encore plus petit */
    min-width: 50px;
    padding: 6px 8px;
  }

  .header4-1 {
    flex: 0 0 80px;    /* largeur fixe mais plus petite */
    min-width: 80px;
    font-size: 0.8rem;
  }

  .header4-2,
  .header4-3,
  .header4-4,
  .header4-5,
  .header4-6 {
    min-width: 60px;
    padding: 4px 6px;
    font-size: 0.8rem;
  }

  .dropdown-menu a {
    font-size: 0.7rem;
    padding: 5px 7px;
  }

  .header4-2 i,
  .header4-3 i,
  .header4-4 i,
  .header4-5 i,
  .header4-6 i {
    font-size: 0.85rem;
  }
}
