/* =============================================================================
   RW Mega Menu — Front CSS
   Rework Agency
   ============================================================================= */

/* ── Reset ──────────────────────────────────────────────────────────────────── */
.rw-megamenu,
.rw-megamenu *,
.rw-megamenu *::before,
.rw-megamenu *::after {
  box-sizing: border-box;
}

.rw-megamenu ul,
.rw-megamenu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Root nav ────────────────────────────────────────────────────────────────── */
.rw-megamenu {
  position: relative;
  width: 100%;
  /* La Good'as : accents pilotés par les tokens du thème */
  --rw-menu-color-accent: var(--bs-primary, #c08428);
  --rw-menu-color-hover: var(--bs-gold-dark, #9c6b1f);
}

/* ── Level 0 list ────────────────────────────────────────────────────────────── */
.rw-megamenu__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start; /* La Good'as : items groupés à gauche */
  gap: 0;
}

/* ── Items ────────────────────────────────────────────────────────────────────── */
.rw-megamenu__item {
  position: relative;
  color: var(--bs-ink, #14110d); /* La Good'as : texte foncé sur barre blanche */
}

.rw-megamenu__item--depth-0:first-child .rw-megamenu__link[class] {
    padding-left: 0 !important;
}

.rw-megamenu__link[class] {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
  font-weight: 500;
}

.rw-megamenu__link[class].rw-megamenu__link--depth-0[class] {
  color: var(--bs-ink, #14110d);
  text-transform: none; /* La Good'as : casse normale comme la maquette */
  letter-spacing: 0;
  padding: 18px 16px !important;
  font-size: 14px !important;
}

@media (max-width: 1500px) and (min-width: 990px) {
  .rw-megamenu__link[class].rw-megamenu__link--depth-0[class] {
    padding: 12px 9px !important;
    font-size: 14px !important;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 1300px) and (min-width: 990px) {
  .rw-megamenu__link[class].rw-megamenu__link--depth-0[class] {
    padding: 12px 9px !important;
    font-size: 13px !important;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 1180px) and (min-width: 990px) {
  .rw-megamenu__link[class].rw-megamenu__link--depth-0[class] {
    padding: 12px 6px !important;
    font-size: 11px !important;
    letter-spacing: 0;
  }
}

.rw-megamenu__link[class].rw-megamenu__link--depth-0[class]:hover {
  color: var(--bs-gold-dark, #9c6b1f);
}

.rw-megamenu__link:hover,
.rw-megamenu__link:focus,
.rw-megamenu__item--is-active > .rw-megamenu__link {
  color: var(--rw-menu-color-hover, #333);
  outline: none;
}

/* ── Arrow indicator ─────────────────────────────────────────────────────────── */
.rw-megamenu__arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Desktop arrow inside <a>: small circle badge, semi-transparent */
.rw-megamenu__arrow--desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  margin-left: 2px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.15s ease;
}

/* Triangle drawn via pseudo-element */
.rw-megamenu__arrow--desktop::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 1px;
  transition: inherit;
}

.rw-megamenu__link:hover .rw-megamenu__arrow--desktop {
  background: rgba(255, 255, 255, 0.4);
}

.rw-megamenu__item--open > .rw-megamenu__link-wrap > .rw-megamenu__link .rw-megamenu__arrow--desktop {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.4);
}

/* Arrow inside arrow-btn (mobile): rotation handled by arrow-btn state */
.rw-megamenu__item--open > .rw-megamenu__link-wrap > .rw-megamenu__arrow-btn .rw-megamenu__arrow {
  transform: rotate(180deg);
}

/* Hide desktop arrow on level-0 — saves space in the nav bar */
.rw-megamenu__item--depth-0 > .rw-megamenu__link-wrap > .rw-megamenu__link .rw-megamenu__arrow--desktop {
  display: none;
}

/* ── Sub-level desktop arrow: grey circle on white background ────────────────── */
.rw-megamenu__link--depth-1 .rw-megamenu__arrow--desktop,
.rw-megamenu__link--depth-2 .rw-megamenu__arrow--desktop {
  background: rgba(0, 0, 0, 0.07);
  margin-left: auto;
  margin-right: 0;
}

.rw-megamenu__link--depth-1:hover .rw-megamenu__arrow--desktop,
.rw-megamenu__link--depth-2:hover .rw-megamenu__arrow--desktop {
  background: rgba(0, 0, 0, 0.12);
}

.rw-megamenu__item--depth-1.rw-megamenu__item--open > .rw-megamenu__link-wrap > .rw-megamenu__link .rw-megamenu__arrow--desktop,
.rw-megamenu__item--depth-2.rw-megamenu__item--open > .rw-megamenu__link-wrap > .rw-megamenu__link .rw-megamenu__arrow--desktop {
  background: rgba(0, 0, 0, 0.12);
}

/* Triangle inside sub-level circle points right (→) */
.rw-megamenu__link--depth-1 .rw-megamenu__arrow--desktop::after,
.rw-megamenu__link--depth-2 .rw-megamenu__arrow--desktop::after {
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 4px solid currentColor;
  border-right: none;
  margin-top: 0;
  margin-left: 1px;
}

.rw-megamenu__item--depth-1.rw-megamenu__item--open > .rw-megamenu__link-wrap > .rw-megamenu__link .rw-megamenu__arrow,
.rw-megamenu__item--depth-2.rw-megamenu__item--open > .rw-megamenu__link-wrap > .rw-megamenu__link .rw-megamenu__arrow {
  transform: rotate(90deg);
}

/* ── Badge ───────────────────────────────────────────────────────────────────── */
.rw-megamenu__badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--bs-border-radius-pill, 999px); /* La Good'as : badge pill doré */
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background-color: var(--bs-primary, #c08428);
  letter-spacing: 0.02em;
}

/* ── Item image ──────────────────────────────────────────────────────────────── */
.rw-megamenu__item-image {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ── Dropdown base ───────────────────────────────────────────────────────────── */
.rw-megamenu__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 2px solid var(--rw-menu-color-accent, #DA7339);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 9000;
  animation: rwMenuFadeIn 0.15s ease;
}

.rw-megamenu__item--open > .rw-megamenu__dropdown {
  display: flex;
  margin: 0;
}

/* Bridge: cover gap between trigger and dropdown */
.rw-megamenu__dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

/* Simple dropdown (depth-0 without grandchildren) */
.rw-megamenu__dropdown--depth-0 {
  min-width: 200px;
}

.rw-megamenu__dropdown--depth-0 .rw-megamenu__sub-list {
  width: 100%;
}

/* ── Mega panel layout ───────────────────────────────────────────────────────── */
.rw-megamenu__mega-panel {
  min-width: min(820px, 90vw);
  max-width: min(1100px, 96vw);
  width: max-content;
  align-items: stretch;
}

/* Sidebar (level-1 list) */
.rw-megamenu__mega-sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 8px 0;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  background: #faf8f6;
}

.rw-megamenu__mega-sidebar__item {
  list-style: none;
}

.rw-megamenu__mega-sidebar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 18px;
  font-size: 0.9em;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
  width: 100%;
}

.rw-megamenu__mega-sidebar__link:hover,
.rw-megamenu__mega-sidebar__item--active .rw-megamenu__mega-sidebar__link {
  background: #fff;
  color: var(--rw-menu-color-accent, #c8846a);
  font-weight: 500;
}

.rw-megamenu__mega-sidebar__item--active .rw-megamenu__mega-sidebar__link {
  border-left: 2px solid var(--rw-menu-color-accent, #DA7339);
  padding-left: 16px;
}

/* Sidebar arrow (→) for items with sub-panel */
.rw-megamenu__mega-sidebar__arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  margin-left: auto;
  opacity: 0.4;
  flex-shrink: 0;
}

.rw-megamenu__mega-sidebar__item--active .rw-megamenu__mega-sidebar__arrow {
  opacity: 0.8;
}

/* Sidebar wrap: flex row on both desktop/mobile; desktop arrow-btn hidden */
.rw-megamenu__mega-sidebar__wrap {
  display: flex;
  align-items: stretch;
}

.rw-megamenu__sidebar-arrow-btn {
  display: none;
}

/* Pane (mobile accordion sub-list): hidden by default, desktop never shown here */
.rw-megamenu__mega-sidebar__pane {
  display: none;
}

/* Content area */
.rw-megamenu__mega-content {
  flex: 1;
  padding: 16px 20px;
  min-width: 0;
}

/* Individual pane (hidden by default, shown when sidebar item is active) */
.rw-megamenu__mega-pane {
  display: none;
}

.rw-megamenu__mega-pane--active {
  display: block;
}

/* Grid of level-2 links inside a pane */
.rw-megamenu__mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rw-megamenu__mega-grid__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 0.875em;
  color: #444;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.rw-megamenu__mega-grid__link:hover {
  background: #f5f0ee;
  color: var(--rw-menu-color-accent, #c8846a);
}

/* ── Columns panel layout (submenu_layout = columns) ─────────────────────────── */
.rw-megamenu__columns-panel {
  min-width: min(900px, 92vw);
  max-width: min(1140px, 96vw);
  width: max-content;
  padding: 28px 32px;
}

.rw-megamenu__columns {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

/* Text column */
.rw-megamenu__col {
  flex: 1 1 0;
  min-width: 150px;
}

.rw-megamenu__col-title {
  display: block;
  margin-bottom: 14px;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bs-muted, #8a8175);
  text-decoration: none;
}

.rw-megamenu__col-title:hover {
  color: var(--rw-menu-color-accent, #c08428);
}

.rw-megamenu__col-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rw-megamenu__col-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  font-size: 0.9em;
  color: var(--bs-ink, #14110d);
  text-decoration: none;
  transition: color 0.12s ease;
}

.rw-megamenu__col-link:hover {
  color: var(--rw-menu-color-accent, #c08428);
}

/* Accent link helper (e.g. "Toutes les marques →") via css_class="rw-link-accent" */
.rw-megamenu__col-link.rw-link-accent {
  color: var(--rw-menu-color-accent, #c08428);
  font-weight: 600;
}

/* Featured visual card (level-1 item with an image) */
.rw-megamenu__feature {
  position: relative;
  flex: 0 0 300px;
  align-self: stretch;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
}

.rw-megamenu__feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 13, 0) 35%, rgba(20, 17, 13, 0.78) 100%);
}

.rw-megamenu__feature-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  color: #fff;
}

.rw-megamenu__feature-eyebrow {
  font-size: 0.66em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

.rw-megamenu__feature-title {
  font-family: var(--bs-headings-font-family, inherit);
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1.1;
}

.rw-megamenu__feature-cta {
  margin-top: 8px;
  font-size: 0.85em;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap 0.15s ease;
}

.rw-megamenu__feature:hover .rw-megamenu__feature-cta {
  border-bottom-color: #fff;
}

.rw-megamenu__col--feature {
  flex: 0 0 300px;
}

/* ── Simple sub-list (non-mega dropdown) ─────────────────────────────────────── */
.rw-megamenu__sub-list {
  padding: 8px 0;
}

.rw-megamenu__item--depth-1 .rw-megamenu__link {
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 16px;
  font-weight: 400;
  font-size: 0.9em;
  width: 100%;
  color: #333;
}

.rw-megamenu__item--depth-1 .rw-megamenu__link:hover {
  background-color: #f5f5f5;
  color: var(--rw-menu-color-accent, #c8846a);
}

/* ── HTML block item ─────────────────────────────────────────────────────────── */
.rw-megamenu__html-block {
  padding: 8px 16px;
}

/* ── Visibility modifiers ────────────────────────────────────────────────────── */
@media (min-width: 990px) {
  .rw-megamenu__item--hide-desktop {
    display: none !important;
  }
}

@media (max-width: 990px) {
  .rw-megamenu__item--hide-mobile {
    display: none !important;
  }
}

/* ── Link wrap (flex row: link + arrow-btn) ─────────────────────────────── */
.rw-megamenu__link-wrap {
  display: flex;
  align-items: stretch;
}

.rw-megamenu__link-wrap .rw-megamenu__link {
  flex: 1;
}

/* ── Arrow button (mobile toggle, desktop decoration) ──────────────────── */
.rw-megamenu__arrow-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  color: inherit;
  padding: 0;
  transition: background 0.15s ease;
}

.rw-megamenu__arrow-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.rw-megamenu__item--open > .rw-megamenu__link-wrap > .rw-megamenu__arrow-btn .rw-megamenu__arrow {
  transform: rotate(180deg);
}

/* ── Mobile toggle button ──────────────────────────────────────────────────── */
.rw-megamenu__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
}

.rw-megamenu__toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}

.rw-megamenu__toggle-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animate to X when open */
.rw-megamenu--mobile-open .rw-megamenu__toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.rw-megamenu--mobile-open .rw-megamenu__toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.rw-megamenu--mobile-open .rw-megamenu__toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Mobile layout ───────────────────────────────────────────────────────────── */
@media (max-width: 990px) {
  /* Hide our own burger — the theme handles it */
  .rw-megamenu__toggle {
    display: none !important;
  }

  /* List: column layout, shown via rw-megamenu--mobile-open added by bridge */
  .rw-megamenu__list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .rw-megamenu--mobile-open .rw-megamenu__list {
    display: flex;
    flex-direction: column;
    justify-content: inherit;
  }

  /* Desktop arrow hidden on mobile (arrow-btn takes over) */
  .rw-megamenu__arrow--desktop {
    display: none;
  }

  /* Show arrow-btn as touch target */
  .rw-megamenu__arrow-btn {
    display: flex;
  }

  /* Links: full width, separator line — no color override, theme controls it */
  .rw-megamenu__link {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  /* Arrow-btn inside sub-levels: force dark color (not white-on-white) */
  .rw-megamenu__item--depth-1 .rw-megamenu__arrow-btn,
  .rw-megamenu__item--depth-2 .rw-megamenu__arrow-btn,
  .rw-megamenu__item--depth-3 .rw-megamenu__arrow-btn {
    color: #555;
    border-left-color: rgba(0, 0, 0, 0.1);
  }

  .rw-megamenu__item--depth-1 .rw-megamenu__arrow-btn:hover,
  .rw-megamenu__item--depth-2 .rw-megamenu__arrow-btn:hover,
  .rw-megamenu__item--depth-3 .rw-megamenu__arrow-btn:hover {
    background: rgba(0, 0, 0, 0.06);
  }

  /* Dropdown depth-0 (level-1 items): white bg to break from theme terracotta */
  .rw-megamenu__dropdown--depth-0 {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--rw-menu-color-accent, #DA7339);
    border-top: none;
    margin-left: 0;
    animation: none;
    background: #fff;
    color: #333;
  }

  .rw-megamenu__dropdown--depth-0 .rw-megamenu__link {
    color: #333;
  }

  .rw-megamenu__dropdown--depth-0 .rw-megamenu__link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--rw-menu-color-accent, #DA7339);
  }

  /* Dropdown depth-1 (level-2 items): more indented, grey tinted bg */
  .rw-megamenu__dropdown--depth-1 {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid rgba(0, 0, 0, 0.15);
    border-top: none;
    margin-left: 16px;
    animation: none;
    background: rgba(0, 0, 0, 0.03);
  }

  /* Dropdown depth-2 (level-3 items): even more indented */
  .rw-megamenu__dropdown--depth-2 {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    margin-left: 28px;
    animation: none;
    background: rgba(0, 0, 0, 0.05);
  }

  .rw-megamenu__item--open > .rw-megamenu__dropdown {
    display: block;
  }

  /* Mega panel on mobile: accordion column — white bg to break from theme terracotta */
  .rw-megamenu__mega-panel {
    display: none;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--rw-menu-color-accent, #DA7339);
    animation: none;
    background: #fff;
    color: #333;
  }

  .rw-megamenu__item--open > .rw-megamenu__mega-panel {
    display: flex;
  }

  /* Sidebar: full width, stacked */
  .rw-megamenu__mega-sidebar {
    width: 100%;
    border-right: none;
    background: transparent;
    padding: 0;
  }

  /* Each sidebar item row: link + arrow-btn side by side */
  .rw-megamenu__mega-sidebar__wrap {
    display: flex;
    align-items: stretch;
  }

  .rw-megamenu__mega-sidebar__link {
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 12px 10px 16px;
    font-size: 0.9em;
    color: #333;
    background: transparent;
  }

  .rw-megamenu__mega-sidebar__link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--rw-menu-color-accent, #DA7339);
  }

  /* Show the sidebar-arrow-btn on mobile */
  .rw-megamenu__sidebar-arrow-btn {
    display: flex;
    color: #555;
    border-left-color: rgba(0, 0, 0, 0.1);
  }

  /* Arrow rotation when open */
  .rw-megamenu__mega-sidebar__item--mob-open .rw-megamenu__sidebar-arrow-btn .rw-megamenu__arrow {
    transform: rotate(180deg);
  }

  /* Desktop sidebar arrows hidden on mobile */
  .rw-megamenu__mega-sidebar__arrow {
    display: none;
  }

  /* Active state: no special style needed on mobile (mob-open handles it) */
  .rw-megamenu__mega-sidebar__item--active .rw-megamenu__mega-sidebar__link {
    border-left: none;
    padding-left: 16px;
  }

  /* Panes: hidden by default, JS sets display:block inline */
  .rw-megamenu__mega-sidebar__pane {
    display: none;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
    margin-left: 0;
  }

  /* Desktop mega-content (panels) — hidden entirely on mobile */
  .rw-megamenu__mega-content {
    display: none;
  }

  /* Grid inside panes: flat list */
  .rw-megamenu__mega-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
  }

  .rw-megamenu__mega-grid__link {
    padding: 8px 12px;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.85em;
    color: #444;
    white-space: normal;
  }

  .rw-megamenu__mega-grid__link:hover {
    background: rgba(0, 0, 0, 0.04);
  }

  /* Columns panel on mobile: static, stacked accordion */
  .rw-megamenu__columns-panel {
    display: none;
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--rw-menu-color-accent, #c08428);
    border-top: none;
    animation: none;
    background: #fff;
  }

  .rw-megamenu__item--open > .rw-megamenu__columns-panel {
    display: block;
  }

  .rw-megamenu__columns {
    flex-direction: column;
    gap: 0;
  }

  .rw-megamenu__col {
    width: 100%;
    min-width: 0;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .rw-megamenu__col-title {
    margin-bottom: 8px;
  }

  .rw-megamenu__col-link {
    padding: 8px 0;
  }

  /* Featured card stays visible but shorter on mobile */
  .rw-megamenu__feature {
    flex-basis: auto;
    width: calc(100% - 32px);
    margin: 12px 16px;
    min-height: 180px;
  }
}

/* ── Animation ───────────────────────────────────────────────────────────────── */
@keyframes rwMenuFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Focus visible (accessibility) ──────────────────────────────────────────── */
.rw-megamenu__link:focus-visible {
  outline: 2px solid var(--rw-menu-color-accent, #333);
  outline-offset: -2px;
}

/* ---- Simple menu (style liste) ---- */
.rw-simplemenu__list,.rw-simplemenu__sublist{list-style:none;margin:0;padding:0;}
.rw-simplemenu__list{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;}
.rw-simplemenu__sublist{padding-left:1rem;}
.rw-simplemenu__link{text-decoration:none;color:inherit;}
.rw-simplemenu__link:hover{text-decoration:underline;}
.rw-simplemenu__item--hide-desktop{display:none;}
@media (max-width:991px){.rw-simplemenu__list{flex-direction:column;align-items:flex-start;}.rw-simplemenu__item--hide-desktop{display:block;}.rw-simplemenu__item--hide-mobile{display:none;}}
