@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.essor-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px; /* un peu plus haut */
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px; /* plus d’espace intérieur */
  box-sizing: border-box;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-left: 18px;
}

.essor-logo {
  height: 36px; /* logo plus grand */
  width: auto;
  margin-right: 12px;
}

.essor-header-center {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 auto;
}

.essor-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  font-size: 15px;
  border-radius: 18px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: border 0.15s;
}
.essor-btn:focus,
.essor-btn:active {
  border-color: #1D0EC4;
}

.icon-btn {
  height: 18px;
  width: 18px;
}

.icon-btn-right {
  height: 19px;
  width: 19px;
}

.essor-menu-btn {
  background: none;
  border: none;
  padding: 2px;
  margin-right: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.icon-menu {
  height: 35px; /* menu plus grand */
  width: 35px;
}

/* ===== HEADER MOBILE — boutons plus compacts ===== */
@media (max-width: 480px) {
  .essor-header {
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 6px;
    padding: 8px 10px;
  }

  .essor-header-center {
    gap: 6px;
    min-width: 0;
  }

  /* Boutons très compacts */
  .essor-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 8px;                 /* ↓ padding vertical */
    font-size: clamp(10px, 2.6vw, 12px);  /* ↓ taille texte */
    line-height: 1.05;                /* texte + serré */
    border-radius: 999px;
    white-space: nowrap;              /* reste sur 1 ligne si possible */
    overflow: hidden;
    text-overflow: ellipsis;          /* coupe proprement si trop long */
  }
  .icon-btn { width: 14px; height: 14px; margin-right: 4px; }

  .essor-menu-btn { padding: 4px; }
  .icon-menu { width: 20px; height: 20px; }
}

/* Encore plus serré pour très petits écrans */
@media (max-width: 380px) {
  .essor-logo { width: 56px; }
  .essor-btn {
    padding: 5px 7px;
    font-size: clamp(9px, 2.4vw, 11px);
  }
  .icon-btn { width: 12px; height: 12px; margin-right: 4px; }
  .icon-menu { width: 18px; height: 18px; }
}
