/* ================================================================ */
/* AURA MEGA MENU v1.0 — Plugin server-side                        */
/* Port exact du megamenu-custom.css v4                             */
/* ================================================================ */

/* ---- DESKTOP NAV BAR ---- */
#amm-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: Outfit, sans-serif;
  flex: 1;
}
#amm-bar a.amm-top {
  padding: 22px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
#amm-bar a.amm-top:hover,
#amm-bar a.amm-top.active {
  color: #F97316;
}
#amm-bar a.amm-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #F97316;
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.2s;
}
#amm-bar a.amm-top:hover::after,
#amm-bar a.amm-top.active::after {
  transform: scaleX(1);
}
#amm-bar a.amm-top svg.amm-chev {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s;
}
#amm-bar a.amm-top.active svg.amm-chev {
  transform: rotate(180deg);
}

/* ---- DESKTOP MEGA PANEL ---- */
#amm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 99;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: ammFadeIn 0.25s;
}
#amm-overlay.show { display: block; }
#amm-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 100;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  border-top: 2px solid #f1f5f9;
  animation: ammSlideIn 0.2s ease-out;
  overflow: hidden;
}
#amm-panel.show { display: block; }
#amm-panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px 36px;
}
.amm-panel-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.amm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.amm-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 660px;
}
.amm-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.amm-item:hover { background: #f8fafc; }
.amm-ic {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: #FFF7ED;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amm-ic svg {
  width: 22px;
  height: 22px;
  stroke: #F97316;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amm-item .amm-t { font-size: 14px; font-weight: 700; color: #0f172a; }
.amm-item .amm-d { font-size: 12px; color: #64748b; line-height: 1.4; margin-top: 2px; }

/* ---- MOBILE BURGER ---- */
#amm-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #f1f5f9;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 1001;
}
#amm-burger svg {
  width: 22px;
  height: 22px;
  stroke: #0f172a;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- MOBILE FULL-SCREEN PANEL ---- */
#amm-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #fff;
  overflow-y: auto;
  flex-direction: column;
  font-family: Outfit, sans-serif;
  animation: ammFadeIn 0.25s ease-out;
}
#amm-mobile.show { display: flex; }
.amm-m-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  border-bottom: 1px solid #f1f5f9;
  min-height: 60px;
  flex-shrink: 0;
}
.amm-m-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: #0f172a;
  text-decoration: none;
}
.amm-m-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: none;
  background: #F97316;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}
.amm-m-close:active { background: #ea580c; transform: scale(0.95); }
.amm-m-close svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.amm-m-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
.amm-m-tabs::-webkit-scrollbar { display: none; }
.amm-m-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--tab-bg, #F97316) !important;
  background: var(--tab-bg, #F97316) !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--tab-text, #ffffff) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: Outfit, sans-serif;
}
.amm-m-tab:hover {
  filter: brightness(0.9);
}
.amm-m-tab:active {
  filter: brightness(0.8);
  transform: scale(0.97);
}
.amm-m-tab.active {
  background: var(--tab-active-bg, #ffffff) !important;
  border-color: var(--tab-bg, #F97316) !important;
  color: var(--tab-bg, #F97316) !important;
}
.amm-m-tab.active:hover {
  filter: brightness(0.97);
}
.amm-m-tab svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amm-m-content { flex: 1; overflow-y: auto; padding: 8px 0; }
.amm-m-section { display: none; }
.amm-m-section.show { display: block; }
.amm-m-parent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #F97316;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}
.amm-m-parent svg {
  width: 18px;
  height: 18px;
  stroke: #F97316;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amm-m-parent span { margin-left: auto; }
.amm-m-parent:active { background: #FFF7ED; }
.amm-m-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  transition: background 0.1s;
}
.amm-m-item:active { background: #f8fafc; }
.amm-m-item .amm-ic { width: 40px; height: 40px; min-width: 40px; border-radius: 10px; }
.amm-m-item .amm-ic svg { width: 20px; height: 20px; }
.amm-m-item .amm-t { font-size: 15px; font-weight: 600; color: #0f172a; }
.amm-m-item .amm-d { font-size: 12px; color: #94a3b8; margin-top: 1px; }
.amm-m-links {
  border-top: 1px solid #f1f5f9;
  padding: 8px 0;
}
.amm-m-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}
.amm-m-links a svg {
  width: 20px;
  height: 20px;
  stroke: #94a3b8;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amm-m-links a:active { background: #f8fafc; color: #F97316; }
.amm-m-links a:active svg { stroke: #F97316; }
.amm-m-cta {
  padding: 12px 20px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
  background: #fff;
}
.amm-m-cta a {
  display: block;
  text-align: center;
  background: #F97316;
  color: #fff;
  padding: 14px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

/* ---- ANIMATIONS ---- */
@keyframes ammFadeIn { from{opacity:0} to{opacity:1} }
@keyframes ammSlideIn { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }
  #amm-bar, #amm-panel, #amm-overlay { display: none !important; }
  .elementor-element-hdr_navwrap { display: none !important; }
  #amm-burger { display: flex; }
  /* Header layout: logo left, burger right */
  header.elementor .e-con-inner {
    justify-content: flex-start !important;
    padding-left: 16px !important;
    padding-right: 70px !important;
  }
  .elementor-element-hdr_logo img {
    max-width: 140px !important;
    height: auto !important;
  }
}
@media (min-width: 1025px) {
  #amm-burger { display: none !important; }
  #amm-mobile { display: none !important; }
}
