/*
 * PRATINIUM v417 — header de référence pour toutes les pages à un niveau.
 *
 * Référence visuelle : page Profil fournisseur fournie en capture.
 * Portée stricte : uniquement les piles marquées
 * .pf-header-stack-v417--reference-single. Les headers réellement à deux
 * niveaux conservent intégralement la présentation v406–v416.
 */

@media (min-width: 992px) {
  html body #header:has(.pf-header-stack-v417--reference-single),
  html body #header.pf-header-v417-reference-single {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 8px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  html body #header .pf-header-stack-v417--reference-single {
    position: relative !important;
    isolation: isolate !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  /* La barre haute n'existe visuellement jamais dans la variante à un niveau. */
  html body #header .pf-header-stack-v417--reference-single > .header-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* Coque identique à la capture : carte unique, flottante et arrondie. */
  html body #header .pf-header-stack-v417--reference-single > .header-top,
  html body #header .pf-header-stack-v417--reference-single > .header-top.pf-header-top-global {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 8px 10px !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  html body #header .pf-header-stack-v417--reference-single > .header-top > .container,
  html body #header .pf-header-stack-v417--reference-single > .header-top.pf-header-top-global > .container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 82px !important;
    height: 82px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 17% 22%, rgba(75, 198, 255, .085), transparent 34%),
      radial-gradient(circle at 83% 20%, rgba(255, 188, 58, .065), transparent 31%),
      linear-gradient(180deg, rgba(255, 255, 255, .995), rgba(250, 252, 255, .985)) !important;
    border: 1px solid rgba(15, 23, 42, .075) !important;
    border-radius: 26px !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .105), inset 0 1px 0 rgba(255, 255, 255, .95) !important;
    box-sizing: border-box !important;
  }

  html body #header .pf-header-stack-v417--reference-single > .header-top > .container::before,
  html body #header .pf-header-stack-v417--reference-single > .header-top.pf-header-top-global > .container::before {
    border-radius: 26px !important;
  }

  html body #header .pf-header-stack-v417--reference-single .pf-header-row-global,
  html body #header .pf-header-stack-v417--reference-single .header-top .container .row.pf-header-row-global {
    position: relative !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 80px !important;
    height: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  /* Logo : mêmes repères et même taille que la page de référence. */
  html body #header .pf-header-stack-v417--reference-single #_desktop_logo,
  html body #header .pf-header-stack-v417--reference-single .pf-header-logo-global {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    animation: none !important;
    transition: none !important;
    translate: none !important;
  }

  html body #header .pf-header-stack-v417--reference-single #_desktop_logo h1,
  html body #header .pf-header-stack-v417--reference-single #_desktop_logo > a,
  html body #header .pf-header-stack-v417--reference-single #_desktop_logo > picture,
  html body #header .pf-header-stack-v417--reference-single #_desktop_logo a.logo,
  html body #header .pf-header-stack-v417--reference-single .pf-header-logo-global h1,
  html body #header .pf-header-stack-v417--reference-single .pf-header-logo-global > a,
  html body #header .pf-header-stack-v417--reference-single .pf-header-logo-global > picture,
  html body #header .pf-header-stack-v417--reference-single .pf-header-logo-global a.logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    line-height: 0 !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
    translate: none !important;
  }

  html body #header .pf-header-stack-v417--reference-single #_desktop_logo img,
  html body #header .pf-header-stack-v417--reference-single #_desktop_logo img.logo,
  html body #header .pf-header-stack-v417--reference-single .pf-header-logo-global img,
  html body #header .pf-header-stack-v417--reference-single .pf-header-logo-global img.logo,
  html body #header .pf-header-stack-v417--reference-single .header-top .logo img,
  html body #header .pf-header-stack-v417--reference-single .header-top a.logo img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    align-self: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 220px !important;
    max-height: 62px !important;
    margin: auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
    translate: none !important;
    filter: none !important;
    will-change: auto !important;
  }

  /* CTA et recherche : mêmes dimensions, espacements et rendu que la référence. */
  html body #header .pf-header-stack-v417--reference-single .pf-header-centerline {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  html body #header .pf-header-stack-v417--reference-single .pf-header-ctas {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body #header .pf-header-stack-v417--reference-single .pf-header-ctas .pf-btn,
  html body #header .pf-header-stack-v417--reference-single .pf-header-centerline .pf-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 126px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 22px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -.01em !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
  }

  html body #header .pf-header-stack-v417--reference-single #search_widget,
  html body #header .pf-header-stack-v417--reference-single #_desktop_search,
  html body #header .pf-header-stack-v417--reference-single .search-widget {
    display: block !important;
    flex: 0 1 auto !important;
    width: clamp(340px, 24vw, 420px) !important;
    min-width: 340px !important;
    max-width: 420px !important;
    min-height: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  html body #header .pf-header-stack-v417--reference-single #search_widget form,
  html body #header .pf-header-stack-v417--reference-single #_desktop_search form,
  html body #header .pf-header-stack-v417--reference-single .search-widget form {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body #header .pf-header-stack-v417--reference-single #search_widget input[type="text"],
  html body #header .pf-header-stack-v417--reference-single #search_widget input[type="search"],
  html body #header .pf-header-stack-v417--reference-single #_desktop_search input[type="text"],
  html body #header .pf-header-stack-v417--reference-single #_desktop_search input[type="search"],
  html body #header .pf-header-stack-v417--reference-single .search-widget input[type="text"],
  html body #header .pf-header-stack-v417--reference-single .search-widget input[type="search"] {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    line-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-radius: 999px !important;
  }
}

/* Largeurs desktop intermédiaires : même composition, simplement compactée. */
@media (min-width: 992px) and (max-width: 1320px) {
  html body #header .pf-header-stack-v417--reference-single > .header-top > .container,
  html body #header .pf-header-stack-v417--reference-single > .header-top.pf-header-top-global > .container {
    min-height: 76px !important;
    height: 76px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  html body #header .pf-header-stack-v417--reference-single .pf-header-row-global,
  html body #header .pf-header-stack-v417--reference-single #_desktop_logo,
  html body #header .pf-header-stack-v417--reference-single .pf-header-logo-global,
  html body #header .pf-header-stack-v417--reference-single #_desktop_logo h1,
  html body #header .pf-header-stack-v417--reference-single #_desktop_logo > a,
  html body #header .pf-header-stack-v417--reference-single .pf-header-logo-global h1,
  html body #header .pf-header-stack-v417--reference-single .pf-header-logo-global > a {
    min-height: 74px !important;
    height: 74px !important;
    max-height: 74px !important;
  }

  html body #header .pf-header-stack-v417--reference-single #_desktop_logo img,
  html body #header .pf-header-stack-v417--reference-single .pf-header-logo-global img {
    max-width: 190px !important;
    max-height: 56px !important;
  }

  html body #header .pf-header-stack-v417--reference-single .pf-header-ctas {
    gap: 8px !important;
  }

  html body #header .pf-header-stack-v417--reference-single .pf-header-ctas .pf-btn,
  html body #header .pf-header-stack-v417--reference-single .pf-header-centerline .pf-btn {
    min-width: 104px !important;
    min-height: 42px !important;
    height: 42px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 14px !important;
  }

  html body #header .pf-header-stack-v417--reference-single #search_widget,
  html body #header .pf-header-stack-v417--reference-single #_desktop_search,
  html body #header .pf-header-stack-v417--reference-single .search-widget {
    width: clamp(300px, 25vw, 350px) !important;
    min-width: 300px !important;
    max-width: 350px !important;
    min-height: 44px !important;
    height: 44px !important;
  }

  html body #header .pf-header-stack-v417--reference-single #search_widget form,
  html body #header .pf-header-stack-v417--reference-single #_desktop_search form,
  html body #header .pf-header-stack-v417--reference-single .search-widget form,
  html body #header .pf-header-stack-v417--reference-single #search_widget input[type="text"],
  html body #header .pf-header-stack-v417--reference-single #search_widget input[type="search"],
  html body #header .pf-header-stack-v417--reference-single #_desktop_search input[type="text"],
  html body #header .pf-header-stack-v417--reference-single #_desktop_search input[type="search"],
  html body #header .pf-header-stack-v417--reference-single .search-widget input[type="text"],
  html body #header .pf-header-stack-v417--reference-single .search-widget input[type="search"] {
    min-height: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
  }
}

/* Mobile/tablette : aucune régression de la navigation mobile existante. */
@media (max-width: 991.98px) {
  html body #header .pf-header-stack-v417--reference-single {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
}
