/*
 * PRATINIUM v410 — correction ciblée du logo sur le header desktop à deux niveaux.
 *
 * Objectif : sur les pages internes qui utilisent la variante de header à deux niveaux,
 * empêcher la coupe du logo vers le bas et le recentrer verticalement dans le
 * compartiment inférieur, en conservant le header compact validé.
 */

@media (min-width: 992px) {
  /* On laisse le logo respirer dans son compartiment, sans re-clipping hérité. */
  html body:not(#index) #header .pf-header-stack-v405--dual > .header-top,
  html body:not(#index) #header .pf-header-stack-v405--dual > .header-top > .container,
  html body:not(#index) #header .pf-header-stack-v405--dual .pf-header-row-global,
  html body:not(#index) #header .pf-header-stack-v405--dual .pf-header-row-global > [class*="col"] {
    overflow: visible !important;
    align-items: center !important;
  }

  html body:not(#index) #header .pf-header-stack-v405--dual #_desktop_logo,
  html body:not(#index) #header .pf-header-stack-v405--dual .pf-header-logo-global {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    translate: none !important;
    animation: none !important;
  }

  html body:not(#index) #header .pf-header-stack-v405--dual #_desktop_logo > *,
  html body:not(#index) #header .pf-header-stack-v405--dual .pf-header-logo-global > *,
  html body:not(#index) #header .pf-header-stack-v405--dual #_desktop_logo h1,
  html body:not(#index) #header .pf-header-stack-v405--dual #_desktop_logo a,
  html body:not(#index) #header .pf-header-stack-v405--dual #_desktop_logo picture,
  html body:not(#index) #header .pf-header-stack-v405--dual .pf-header-logo-global h1,
  html body:not(#index) #header .pf-header-stack-v405--dual .pf-header-logo-global a,
  html body:not(#index) #header .pf-header-stack-v405--dual .pf-header-logo-global picture,
  html body:not(#index) #header .pf-header-stack-v405--dual a.logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    overflow: visible !important;
    transform: none !important;
    translate: none !important;
  }

  /* Décalage vers le haut strictement réservé à la variante duale pour compenser
     la coupe observée sur les pages internes. */
  html body:not(#index) #header .pf-header-stack-v405--dual #_desktop_logo img,
  html body:not(#index) #header .pf-header-stack-v405--dual .pf-header-logo-global img,
  html body:not(#index) #header .pf-header-stack-v405--dual .logo img {
    position: relative !important;
    top: -12px !important;
    inset: auto !important;
    display: block !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 58px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
    vertical-align: middle !important;
    transform: none !important;
    translate: none !important;
    animation: none !important;
    filter: none !important;
  }

  html body:not(#index) #header .pf-header-stack-v405--dual #_desktop_logo::before,
  html body:not(#index) #header .pf-header-stack-v405--dual #_desktop_logo::after,
  html body:not(#index) #header .pf-header-stack-v405--dual .pf-header-logo-global::before,
  html body:not(#index) #header .pf-header-stack-v405--dual .pf-header-logo-global::after {
    pointer-events: none !important;
  }
}
