/* Shared component overrides: single source for header/footer styling. */
.site-header { background: #5530f5 !important; }
.site-header .main-nav > a:not(.header-action) { color: #fff !important; }
.site-header .header-action { background: #ffd66b !important; color: #21143d !important; }
.site-header .header-action:hover { background: #ffe391 !important; }

/* OLDHUP: violet continu entre le header et le hero de l’accueil */
body:not(.oldhup-service-v2) > main > .intro:first-child,
body:not(.oldhup-service-v2) .intro:has(#intro-title) { background: #5530f5 !important; background-image: none !important; }

/* OLDHUP v4 — correctifs mobiles globaux : header et navigation accessibles */
#oldhup-header { position: relative; z-index: 1000; }
.site-header { background:#5530f5 !important; }
.site-header .menu-toggle { color:#21133b !important; background:#fff !important; border:0; border-radius:999px; padding:11px 19px; font-weight:800; cursor:pointer; }
.site-header .menu-toggle[hidden] { display:none !important; }
@media (max-width:900px) {
 .site-header .header-inner { position:relative !important; display:flex !important; align-items:center !important; justify-content:space-between !important; width:min(100% - 32px, 1200px) !important; margin-inline:auto !important; padding:0 !important; }
 .site-header .logo { margin:0 !important; min-width:0; }
 .site-header .logo img { height:38px !important; max-width:min(42vw,175px) !important; width:auto !important; }
 .site-header .menu-toggle { display:inline-flex !important; align-items:center; justify-content:center; margin-left:auto !important; position:relative; z-index:1002; }
 .site-header .menu-toggle[hidden] { display:none !important; }
 .site-header .header-inner > .main-nav.is-enhanced {
   display:none !important; position:absolute !important; top:calc(100% + 12px) !important; left:0 !important; right:0 !important; width:100% !important; box-sizing:border-box !important; margin:0 !important; padding:16px !important;
   background:#fff !important; border:1px solid #e8defc !important; border-radius:24px !important; box-shadow:0 18px 45px #21133b35 !important; z-index:1001 !important;
   flex-direction:column !important; align-items:stretch !important; gap:0 !important; max-height:min(75dvh,580px); overflow-y:auto;
 }
 .site-header .header-inner > .main-nav.is-enhanced.is-open { display:flex !important; }
 .site-header .header-inner > .main-nav.is-enhanced > a:not(.header-action) {
   display:block !important; color:#21133b !important; opacity:1 !important; visibility:visible !important; text-shadow:none !important; font-size:16px !important; font-weight:750 !important; line-height:1.45 !important; text-decoration:none !important;
   padding:14px 12px !important; border-bottom:1px solid #e8defc !important; margin:0 !important;
 }
 .site-header .header-inner > .main-nav.is-enhanced > a:not(.header-action):hover,
 .site-header .header-inner > .main-nav.is-enhanced > a[aria-current=page] { color:#5530f5 !important; }
 .site-header .header-inner > .main-nav.is-enhanced .header-action { display:flex !important; justify-content:center !important; width:100% !important; box-sizing:border-box !important; background:#ffda78 !important; color:#21133b !important; margin:15px 0 0 !important; padding:15px !important; }
 body { overflow-x:clip; }
 main, main > section { min-width:0; }
 body nav.breadcrumbs.oh-breadcrumbs { width:calc(100% - 36px) !important; max-width:100% !important; margin-inline:auto !important; padding:18px 0 !important; box-sizing:border-box; }
 body nav.breadcrumbs.oh-breadcrumbs ol { max-width:100% !important; width:fit-content !important; box-sizing:border-box !important; overflow-wrap:anywhere; }
 body nav.breadcrumbs.oh-breadcrumbs li { min-width:0; overflow-wrap:anywhere; }
 .oh-legal-hero { background:#faf8ff !important; }
 .oh-legal-hero .wrap,.oh-legal-layout.wrap { width:calc(100% - 36px) !important; max-width:100% !important; margin-inline:auto !important; }
 .oh-legal-hero-grid { grid-template-columns:minmax(0,1fr) !important; gap:24px !important; }
 .oh-legal-hero h1 { font-size:clamp(36px,9vw,54px) !important; line-height:1.05 !important; overflow-wrap:break-word; }
 .oh-legal-hero h1,.oh-legal-hero .oh-legal-eyebrow,.oh-legal-hero .oh-legal-date { color:#21133b !important; }
 .oh-legal-art { min-width:0; }
 .oh-legal-layout { grid-template-columns:minmax(0,1fr) !important; }
 .oh-legal-sections, .oh-legal-sections .legal-block { min-width:0; }
 .oh-legal-sections .legal-copy { overflow-wrap:anywhere; }
}
@media (max-width:480px) {
 .site-header { padding-block:14px !important; }
 .site-header .logo img { height:34px !important; }
 .site-header .menu-toggle { padding:10px 17px !important; font-size:15px !important; }
 .oh-legal-hero .wrap,.oh-legal-layout.wrap { width:calc(100% - 32px) !important; }
 .oh-legal-hero h1 { font-size:clamp(34px,9vw,44px) !important; }
 .oh-legal-art { padding:18px !important; }
}
