/* ==========================================================================
   CFP Santé UI — Header
   Version corrigée
   --------------------------------------------------------------------------
   Conserve le header d'origine du thème.
   Modifie uniquement :
   1. la typographie du nom de l'établissement ;
   2. la suppression de la bande blanche créée par .region-quick-access.
   ========================================================================== */

/* ==========================================================================
   1. Nom de l'établissement
   ========================================================================== */

html body #block-entete .header-branding :where(
  h1,
  h2,
  .site-name,
  .site-title,
  .navbar-brand
) {
  font-family: var(
    --cfps-font-display,
    "Outfit CFPS",
    "Avenir Next",
    Avenir,
    Arial,
    sans-serif
  ) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  letter-spacing: -.015em !important;
}

/* ==========================================================================
   2. Suppression de la bande blanche au-dessus du header
   --------------------------------------------------------------------------
   Le thème conserve une hauteur pour la région des accès rapides, même lorsque
   ses deux blocs ne produisent aucun contenu visible sur cette page.
   ========================================================================== */

html body .region-quick-access {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  line-height: 0 !important;
}

/* Sécurité : neutralise également tous les niveaux internes. */
html body .region-quick-access > .region,
html body .region-quick-access .block,
html body #block-accesrapide-public,
html body #block-accesrapide-pro {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* Neutralise d'éventuels pseudo-éléments de clearfix. */
html body .region-quick-access::before,
html body .region-quick-access::after,
html body .region-quick-access > .region::before,
html body .region-quick-access > .region::after {
  content: none !important;
  display: none !important;
}
