@font-face { font-family: YSHMenu; src: url("menu.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
/* Yellow-Sub Header 1.0.4 — toutes les règles visuelles sont isolées. */
#ysh-shell, #ysh-header { display: none; }

/* La présence des DEUX headers est requise. Une page sans header natif
   (landing page, checkout spécial) reste intacte. Sans :has(), repli natif. */
@media (min-width: 768px) {
  body:has(#ysh-header) #header { display: none !important; }
  /* Fond périphérique sombre ; seul le contenu reste dans .container. */
  body:has(#header) #ysh-shell { display: block; width: 100%; margin: 0; padding: 0; background: #292929; }
  body:has(#header) #ysh-header {
    display: block;
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: #292929;
    color: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
    isolation: isolate;
    --ysh-yellow: #ffcc00;
  }
  #ysh-header *, #ysh-header *::before, #ysh-header *::after { box-sizing: border-box; }
  #ysh-header .ysh-inner { width: 100%; padding-inline: 15px; margin-inline: auto; }
  #ysh-header .ysh-top { background: #131313; border-bottom: 2px solid var(--ysh-yellow); }
  #ysh-header .ysh-top-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  #ysh-header .ysh-top p { margin: 0; color: #eee; font-size: 12px; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
  #ysh-header .ysh-social { display: flex; align-items: center; gap: 8px; }
  #ysh-header .ysh-social a { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; color: #eee; text-decoration: none; }
  #ysh-header .ysh-social svg { width: 20px; height: 20px; }
  #ysh-header .ysh-social a:hover { color: var(--ysh-yellow); }
  #ysh-header .ysh-main-inner { min-height: 160px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 24px; }
  #ysh-header .ysh-logo { display: block; flex: 0 1 380px; max-width: 380px; line-height: 0; padding: 0; margin: 0; }
  #ysh-header .ysh-logo img { display: block; width: 100%; height: auto; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; filter: none; opacity: 1; }
  #ysh-header .ysh-search { display: flex; flex: 0 1 360px; width: 360px; max-width: 45%; margin: 0; padding: 0; border: 1px solid #c6c6c6; border-radius: 3px; background: #222; overflow: visible; }
  #ysh-header .ysh-search input[type=search] { appearance: none; width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 15px; color: #fff; background: transparent; border: 0; border-radius: 2px 0 0 2px; box-shadow: none; font: 400 15px/1.4 Arial, Helvetica, sans-serif; }
  #ysh-header .ysh-search input::placeholder { color: #d0d0d0; opacity: 1; }
  #ysh-header .ysh-search button { appearance: none; display: flex; align-items: center; justify-content: center; flex: 0 0 52px; min-width: 52px; height: 48px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0 2px 2px 0; box-shadow: none; background: var(--ysh-yellow); color: #111; cursor: pointer; line-height: 1; }
  #ysh-header .ysh-search button:hover { background: #ffdc4d; }
  #ysh-header .ysh-search button svg { width: 25px; height: 25px; }
  #ysh-header .ysh-navigation { width: 100%; margin-inline: auto; padding: 0; border-top: 1px solid #393939; border-bottom: 1px solid #393939; background: #101010; }
  #ysh-header .ysh-nav-inner { padding-inline: 15px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #ffcc00 #191919; }
  #ysh-header .ysh-menu { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 3px; min-width: max-content; width: 100%; list-style: none; margin: 0; padding: 8px 0; }
  #ysh-header .ysh-item { display: block; flex: 0 0 auto; float: none; list-style: none; margin: 0; padding: 0; }
  #ysh-header .ysh-item::before, #ysh-header .ysh-item::after { content: none; }
  #ysh-header .ysh-item a { display: flex; align-items: center; justify-content: center; min-height: 42px; margin: 0; padding: 8px clamp(5px, .72vw, 12px); border: 0; border-radius: 3px; background: transparent; box-shadow: none; color: #f3f3f3; font: 600 clamp(12px, 1.18vw, 17px)/1.25 YSHMenu, "Arial Narrow", Arial, sans-serif; text-decoration: none; text-transform: uppercase; letter-spacing: 0; white-space: nowrap; }
  #ysh-header .ysh-item a:hover { color: var(--ysh-yellow); background: #242424; }
  #ysh-header .ysh-active a, #ysh-header .ysh-active a:hover { color: #141414; background: var(--ysh-yellow); }
  #ysh-header .ysh-shop { border-left: 1px solid var(--ysh-yellow); padding-left: clamp(6px, .9vw, 16px); margin-left: 4px; }
  #ysh-header a:focus-visible, #ysh-header button:focus-visible, #ysh-header input:focus-visible { outline: 2px solid var(--ysh-yellow); outline-offset: 2px; }
  #ysh-header .ysh-search button:focus-visible { outline-color: white; outline-offset: -4px; }
  #ysh-header .ysh-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #ysh-header .ysh-top p { font-size: 10px; letter-spacing: .07em; }
  #ysh-header .ysh-main-inner { min-height: 125px; padding-block: 20px; gap: 30px; }
  #ysh-header .ysh-logo { flex-basis: 290px; max-width: 38%; }
  #ysh-header .ysh-search { flex-basis: 300px; max-width: 44%; }
  #ysh-header .ysh-search input[type=search] { height: 44px; font-size: 13px; padding-inline: 10px; }
  #ysh-header .ysh-search button { height: 44px; min-width: 44px; flex-basis: 44px; }
  #ysh-header .ysh-item a { min-height: 44px; padding-inline: 5px; font-size: clamp(12px, 1.5vw, 15px); }
  #ysh-header .ysh-menu { gap: 1px; padding-block: 6px; }
  #ysh-header .ysh-shop { padding-left: 6px; margin-left: 2px; }
}
