/* OyoMobility — HEADER (v5.0, mobile-first, source unique)
   Aucune surcharge !important : le header utilise ses propres classes (.oyo-hdr*), sans conflit avec Blocksy ni le reste du thème.
   Réglages Apparence > Personnaliser > « Header OyoMobility » : hauteur du logo, couleur de fond, texte du bouton. */
.oyo-hdr{position:sticky;top:0;z-index:1000;background:var(--oyo-header-bg,#fff);border-bottom:1px solid var(--line);font-family:var(--font)}
.oyo-hdr.is-scrolled{box-shadow:0 2px 14px rgba(10,31,73,.08)}
.oyo-hdr__bar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:.75rem;width:min(var(--wrap),100% - var(--gutter) * 2);min-height:var(--hdr-h);margin-inline:auto}

/* Logo : proportions respectées, jamais déformé */
.oyo-hdr__logo{display:flex;align-items:center;flex:0 1 auto;min-width:0}
.oyo-hdr__logo a{display:flex;align-items:center;color:var(--oyo-navy);font-weight:800;font-size:1.25rem;text-decoration:none}
.oyo-hdr__logo img{display:block;width:auto;height:64px;max-width:min(280px,58vw);object-fit:contain;object-position:left center}

/* Bouton menu (cible tactile 48 px) */
.oyo-hdr__burger{display:inline-grid;place-items:center;flex:0 0 48px;width:48px;height:48px;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--oyo-navy);font-size:1.2rem;cursor:pointer}
.oyo-hdr__burger:hover{border-color:var(--accent);color:var(--accent)}
.oyo-hdr__burger .fa-xmark,.oyo-hdr__burger[aria-expanded="true"] .fa-bars{display:none}
.oyo-hdr__burger[aria-expanded="true"] .fa-xmark{display:inline-block}

/* Panneau mobile */
.oyo-hdr__nav{position:absolute;top:100%;left:calc(var(--gutter) * -1);right:calc(var(--gutter) * -1);padding:.25rem var(--gutter) 1.25rem;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 18px 30px rgba(10,31,73,.12);max-height:calc(100vh - var(--hdr-h));max-height:calc(100dvh - var(--hdr-h));overflow-y:auto;overscroll-behavior:contain}
.js .oyo-hdr__nav{display:none}
.js .oyo-hdr__nav.is-open{display:block}
.oyo-hdr__menu{list-style:none;margin:0;padding:0}
.oyo-hdr__menu li{margin:0;border-bottom:1px solid var(--line)}
.oyo-hdr__menu a{display:flex;align-items:center;justify-content:space-between;min-height:54px;color:var(--oyo-text);font-size:1.0625rem;font-weight:600;text-decoration:none}
.oyo-hdr__menu a:hover,.oyo-hdr__menu .current-menu-item>a,.oyo-hdr__menu .current_page_item>a{color:var(--accent)}
.oyo-hdr__actions{display:grid;gap:.75rem;margin-top:1.1rem}
.oyo-hdr__actions .btn{width:100%}
.oyo-hdr__account{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:48px;padding:.6rem 1rem;border:1px solid var(--line);border-radius:10px;color:var(--oyo-navy);font-weight:600;text-decoration:none}
.oyo-hdr__account:hover{border-color:var(--accent);color:var(--accent)}
.oyo-hdr__account i{font-size:1.15rem}

/* Ordinateur : logo à gauche, navigation au centre, actions à droite */
@media(min-width:1024px){
	.oyo-hdr__bar{gap:1.5rem}
	.oyo-hdr__logo img{height:var(--oyo-logo-h,64px);max-width:280px}
	.oyo-hdr__burger{display:none}
	.oyo-hdr__nav,.js .oyo-hdr__nav,.js .oyo-hdr__nav.is-open{position:static;display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;gap:1.25rem;min-width:0;padding:0;border:0;box-shadow:none;background:transparent;max-height:none;overflow:visible}
	.oyo-hdr__menu{display:flex;align-items:center;gap:clamp(.9rem,1.8vw,2rem);margin-inline:auto}
	.oyo-hdr__menu li{border:0}
	.oyo-hdr__menu a{position:relative;min-height:44px;padding:0;font-size:.95rem;white-space:nowrap}
	.oyo-hdr__menu a::after{content:"";position:absolute;left:0;right:0;bottom:6px;height:2px;border-radius:2px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .2s ease}
	.oyo-hdr__menu a:hover::after,.oyo-hdr__menu .current-menu-item>a::after,.oyo-hdr__menu .current_page_item>a::after{transform:scaleX(1)}
	.oyo-hdr__actions{display:flex;align-items:center;gap:.75rem;margin:0;flex:0 0 auto}
	.oyo-hdr__actions .btn{width:auto;min-height:46px;padding-inline:1.2rem;white-space:nowrap}
	.oyo-hdr__account{width:46px;height:46px;min-height:0;padding:0;border-radius:50%;background:#E8EEFF;border-color:transparent;color:var(--accent)}
	.oyo-hdr__account:hover{background:var(--accent);color:#fff}
	.oyo-hdr__account span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media(min-width:1280px){
	.oyo-hdr__logo img{max-width:280px}
	.oyo-hdr__account{width:auto;height:auto;min-height:46px;padding:.5rem 1rem;border-radius:10px;background:transparent;border-color:var(--line);color:var(--oyo-navy)}
	.oyo-hdr__account:hover{background:#fff;border-color:var(--accent);color:var(--accent)}
	.oyo-hdr__account span{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
}
@media(prefers-reduced-motion:reduce){.oyo-hdr *{transition:none}}
