/* Menu (Daniel, 18 Nov.): the language lives in one place only. Whenever the menu button shows,
   the language switch leaves the bar and sits at the foot of the menu; between 810 and 1199 px
   the bar keeps « Créer mon compte », so the menu does not repeat it. Links are large rows with
   hairlines and an arrow; the language is a segmented switch. */
@media (max-width:1199px){
  :root:root .mivora-nav .nav-pill .lang-bar{display:none!important}
  :root:root .mivora-nav .nav-panel:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px;padding:8px 8px 12px!important;border-radius:20px!important}
  :root:root .mivora-nav .nav-panel>a:not(.btn){grid-column:1/-1;display:flex!important;align-items:center;justify-content:space-between;gap:16px;min-height:60px;margin:0!important;padding:0 16px!important;border-bottom:1px solid var(--ui-line,rgba(127,127,127,.18))!important;border-radius:0!important;font:500 22px/1.2 'Bricolage Grotesque',Geist,sans-serif!important;letter-spacing:-.01em;animation:nav-row 360ms cubic-bezier(.2,.8,.2,1) both}
  :root:root .mivora-nav .nav-panel>a:not(.btn)::before{border-radius:12px}
  :root:root .mivora-nav .nav-panel>a:not(.btn)::after{content:"";flex:none;width:18px;height:18px;background:currentColor;opacity:.45;-webkit-mask:var(--rb-arrow) center/contain no-repeat;mask:var(--rb-arrow) center/contain no-repeat;transition:transform 200ms cubic-bezier(.2,.8,.2,1),opacity 200ms ease}
  :root:root .mivora-nav .nav-panel>a:not(.btn):nth-of-type(5){border-bottom:0!important}
  :root:root .mivora-nav .nav-panel>a:nth-of-type(2){animation-delay:30ms}
  :root:root .mivora-nav .nav-panel>a:nth-of-type(3){animation-delay:60ms}
  :root:root .mivora-nav .nav-panel>a:nth-of-type(4){animation-delay:90ms}
  :root:root .mivora-nav .nav-panel>a:nth-of-type(5){animation-delay:120ms}
  :root:root .mivora-nav .nav-panel>a.btn{grid-column:1;grid-row:6;width:100%;min-height:52px;margin:12px 0 0!important;justify-content:center}
  /* Segmented language switch */
  :root:root .mivora-nav .nav-panel .lang-menu{grid-column:2;grid-row:6;display:inline-flex!important;align-items:center;gap:2px;margin:12px 0 0!important;padding:4px;border:0!important;border-radius:999px;background:var(--ui-soft,rgba(127,127,127,.12))}
  :root:root .mivora-nav .nav-panel .lang-menu button{min-width:48px;min-height:44px;margin:0;padding:0 14px;border:0!important;border-radius:999px;background:transparent;color:var(--ui-muted,inherit);font:600 14px/1 Geist,sans-serif;letter-spacing:.04em;box-shadow:none;transition:background-color 200ms ease,color 200ms ease}
  :root:root .mivora-nav .nav-panel .lang-menu button::before,:root:root .mivora-nav .nav-panel .lang-menu button::after{display:none!important}
  :root:root .mivora-nav .nav-panel .lang-menu button[aria-pressed="true"]{background:var(--ui-surface,#fff);color:var(--ui-text,inherit);box-shadow:0 1px 3px rgb(0 0 0/18%)}
  :root:root .mivora-nav .nav-panel .lang-menu button:focus-visible{outline:2px solid var(--ui-focus,currentColor);outline-offset:2px}
  @media (hover:hover) and (pointer:fine){
    :root:root .mivora-nav .nav-panel>a:not(.btn):hover::after{transform:translateX(4px);opacity:1}
  }
}
/* 810–1199 px: « Créer mon compte » stays in the bar; the menu ends on the language switch. */
@media (min-width:810px) and (max-width:1199px){
  :root:root .mivora-nav .nav-panel>a.btn{display:none!important}
  :root:root .mivora-nav .nav-panel .lang-menu{grid-column:1/-1;justify-self:start;margin:12px 8px 0!important}
}
@keyframes nav-row{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){:root:root .mivora-nav .nav-panel>a{animation:none!important}}
