/* OptionRock: navigation mobile toujours visible — sans menu hamburger.
   La version ordinateur conserve sa navigation horizontale. */
.or-mobile-menu-toggle {
  display: none !important;
}

.or-mobile-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  min-width: 0;
}

@media (max-width: 760px) {
  .or-header__inner {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    column-gap: .5rem !important;
    row-gap: .45rem !important;
    padding: .6rem .8rem .55rem !important;
  }

  .or-brand {
    order: 1;
    flex: 1 1 0 !important;
    min-width: 0;
  }

  .or-brand__logo {
    width: clamp(9rem, 46vw, 13.5rem) !important;
    max-width: 100% !important;
    max-height: 3.4rem !important;
  }

  .or-header__inner > .or-language-switch {
    order: 2;
    display: inline-flex !important;
    flex: 0 0 auto;
    align-self: center !important;
    margin: 0 !important;
  }

  .or-header__inner > .or-language-switch a {
    display: inline-flex;
    min-width: 2.25rem;
    min-height: 2.5rem;
    padding: .5rem .55rem;
  }

  .or-mobile-navigation,
  .or-header:not(.is-mobile-menu-open) .or-mobile-navigation {
    order: 3;
    display: block !important;
    flex: 0 0 100%;
    width: 100%;
    margin: 0 !important;
    min-width: 0;
    padding-top: .45rem;
    border-top: 1px solid rgba(255,255,255,.09);
  }

  .or-mobile-navigation > .or-nav {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .34rem;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .or-mobile-navigation > .or-nav > ul {
    display: contents;
  }

  .or-mobile-navigation > .or-nav > a,
  .or-mobile-navigation > .or-nav > ul > li {
    grid-column: span 2;
    min-width: 0;
    margin: 0;
  }

  .or-mobile-navigation > .or-nav > a:nth-child(n+4),
  .or-mobile-navigation > .or-nav > ul > li:nth-child(n+4) {
    grid-column: span 3;
  }

  .or-mobile-navigation > .or-nav a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem !important;
    width: 100%;
    padding: .45rem .35rem !important;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: .3rem;
    background: rgba(255,255,255,.035);
    color: #eee !important;
    font-size: .69rem !important;
    font-weight: 750;
    letter-spacing: .025em !important;
    line-height: 1.2;
    text-align: center;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-decoration: none;
  }

  .or-mobile-navigation > .or-nav a:hover,
  .or-mobile-navigation > .or-nav a:focus-visible,
  .or-mobile-navigation > .or-nav li.current-menu-item > a {
    border-color: rgba(227,38,46,.68);
    background: rgba(227,38,46,.17);
    color: #fff !important;
  }

  .or-mobile-navigation > .or-nav a:focus-visible {
    outline: 2px solid #e3262e;
    outline-offset: 2px;
  }
}

@media (max-width: 360px) {
  .or-brand__logo {
    width: clamp(8.5rem, 43vw, 11rem) !important;
  }

  .or-mobile-navigation > .or-nav a {
    font-size: .65rem !important;
    letter-spacing: 0 !important;
    padding-inline: .24rem !important;
  }
}
