/* =========================================================
   Z2C-MAP - MINI HEADER DES PAGES OUTILS
   Recherche, Listing, Historique, etc.
   ========================================================= */

.z2c-tools-header {
  padding: 22px 0 6px;
  background: linear-gradient(
    180deg,
    rgba(20, 33, 43, 0.42),
    rgba(20, 33, 43, 0)
  );
}

.z2c-tools-header-inner {
  max-width: 760px;
}

.z2c-tools-title-link {
  display: inline-block;
  text-decoration: none;
}

.z2c-tools-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.z2c-tools-subtitle {
  margin: 7px 0 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
}

.z2c-tools-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.z2c-tools-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 12px;
}

.z2c-tools-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 999px;
  white-space: nowrap;
}

/*
 * Sur recherche.php, le titre / version / sous-titre de l'ancien Hero
 * sont maintenant portés par header-tools.php.
 * On ne touche pas à includes/search.php : aucun risque de régression.
 */
.tool-page #hero {
  min-height: 0;
  display: block;
  padding: 12px 0 52px;
}

.tool-page #hero .hero-title,
.tool-page #hero .hero-subtitle,
.tool-page #hero .small.text-white-50 {
  display: none !important;
}

.tool-page #hero .dico-wrap {
  margin-top: 4px;
}

/*
 * Ajouter et Historique sont désormais dans le mini header.
 * La barre des résultats reste disponible pour Réinitialiser
 * et les futures fonctions liées aux résultats.
 */
.tool-page .z2c-index-results-actions a[href="ajout-lieu.php"],
.tool-page .z2c-index-results-actions a[href="./ajout-lieu.php"],
.tool-page .z2c-index-results-actions a[href="historique.php"],
.tool-page .z2c-index-results-actions a[href="./historique.php"] {
  display: none !important;
}

@media (max-width: 575.98px) {
  .z2c-tools-header {
    padding-top: 14px;
  }

  .z2c-tools-title {
    font-size: 1.75rem;
  }

  .z2c-tools-subtitle {
    font-size: 0.82rem;
  }

  .z2c-tools-meta {
    font-size: 0.66rem;
  }

  .z2c-tools-actions {
    gap: 0.35rem;
    margin-top: 10px;
  }

  .z2c-tools-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.68rem;
  }

  .tool-page #hero {
    padding-top: 8px;
  }
}


