/*
 * PRATINIUM v416 — restauration robuste CTA + recherche sur le header dual.
 *
 * La variante à deux niveaux est rendue indépendante des anciennes grilles :
 * le bloc CTA/recherche est ancré à droite du compartiment inférieur, centré
 * verticalement et toujours visible. Le logo conserve son alignement v414/v415.
 */

@media (min-width: 992px) {
  html #header .pf-header-stack-v405--dual > .header-top,
  html #header .pf-header-stack-v405--dual > .header-top > .container,
  html #header .pf-header-stack-v405--dual .pf-header-row-global {
    position: relative !important;
    overflow: visible !important;
  }

  html #header .pf-header-stack-v405--dual .pf-header-row-global {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html #header .pf-header-stack-v405--dual .pf-header-centerline {
    position: absolute !important;
    z-index: 40 !important;
    top: 50% !important;
    right: 20px !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(20px, 2vw, 36px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 430px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) !important;
    translate: none !important;
    pointer-events: auto !important;
  }

  html #header .pf-header-stack-v405--dual .pf-header-ctas {
    position: static !important;
    display: flex !important;
    flex: 0 0 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    translate: none !important;
  }

  html #header .pf-header-stack-v405--dual .pf-header-ctas .pf-btn,
  html #header .pf-header-stack-v405--dual .pf-header-centerline .pf-btn {
    position: static !important;
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    translate: none !important;
  }

  html #header .pf-header-stack-v405--dual #search_widget,
  html #header .pf-header-stack-v405--dual #_desktop_search,
  html #header .pf-header-stack-v405--dual .search-widget {
    position: static !important;
    display: block !important;
    flex: 0 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    translate: none !important;
    pointer-events: auto !important;
  }

  html #header .pf-header-stack-v405--dual #search_widget form,
  html #header .pf-header-stack-v405--dual #_desktop_search form,
  html #header .pf-header-stack-v405--dual .search-widget form {
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    translate: none !important;
  }
}

@media (min-width: 1221px) and (max-width: 1500px) {
  html #header .pf-header-stack-v405--dual .pf-header-centerline {
    right: 18px !important;
    gap: 20px !important;
    max-width: calc(100% - 350px) !important;
  }
}

@media (min-width: 992px) and (max-width: 1220px) {
  html #header .pf-header-stack-v405--dual .pf-header-centerline {
    right: 12px !important;
    gap: 14px !important;
    max-width: calc(100% - 285px) !important;
  }
}
