/* ==================================================
   AMALYA NAV GLOBAL v2 - CSS EXTERNE PREMIUM
   Plus contrasté, plus visible
   ================================================== */

@media (max-width: 899px) {
  #amalya-nav-root { display: none !important; }
}

@media (min-width: 900px) {
  /* Masque ancienne nav Elementor home si elle existe encore */
  body > nav:not(#amalya-nav-root),
  .site-header,
  header.site-header,
  .main-header-bar-wrap,
  #masthead {
    display: none !important;
  }

  /* RESET */
 #amalya-nav-root,
#amalya-nav-root *,
#amalya-nav-root *::before,
#amalya-nav-root *::after {
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
}
#amalya-nav-root,
#amalya-nav-root ul,
#amalya-nav-root li,
#amalya-nav-root a,
#amalya-nav-root span,
#amalya-nav-root div {
  margin: 0;
}

  /* CONTENEUR PRINCIPAL — plus opaque + ombre */
  #amalya-nav-root {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 9998;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 32px;
    background: rgba(8, 8, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(77, 159, 255, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    transition: padding 0.3s ease, background 0.3s ease;
  }

  /* SHRINK ON SCROLL */
  #amalya-nav-root.amalya-shrunk {
    padding: 8px 32px;
    background: rgba(8, 8, 16, 0.98);
  }

  body { padding-top: 110px !important; }
  body.amalya-shrunk-active { padding-top: 96px !important; }

  /* LOGO */
  .amalya-nav-logo {
    font-family: 'Big Shoulders Display', sans-serif !important;
    font-weight: 800;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    background: linear-gradient(135deg, #fff 30%, #4d9fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    justify-self: start;
    transition: filter 0.2s ease;
  }
  .amalya-nav-logo:hover {
    filter: drop-shadow(0 0 12px rgba(77, 159, 255, 0.6));
  }

  /* PILL CENTRALE — plus contrasté */
  .amalya-nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(77, 159, 255, 0.25);
    border-radius: 50px;
    padding: 6px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    justify-self: center;
  }

  .amalya-nav-item { position: relative; }

  .amalya-nav-link {
    color: #c8d4e8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    transition: color 0.2s ease, background 0.2s ease;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
  }

  .amalya-nav-link:hover {
    color: #fff;
    background: rgba(77, 159, 255, 0.15);
  }

  /* UNDERLINE animation */
  .amalya-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4d9fff 0%, #c9a84c 100%);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
  }
  .amalya-nav-link:hover::after {
    width: calc(100% - 32px);
    left: 16px;
  }

  /* PAGE ACTIVE */
  .amalya-nav-link.amalya-active {
    color: #c9a84c;
  }
  .amalya-nav-link.amalya-active::after {
    width: calc(100% - 32px);
    left: 16px;
    background: #c9a84c;
  }

  /* CARET */
  .amalya-nav-caret {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
    opacity: 0.7;
  }
  .amalya-nav-item:hover .amalya-nav-caret {
    transform: rotate(180deg);
    opacity: 1;
  }

  /* BLOG DORÉ */
  .amalya-nav-link.amalya-gold {
    background: transparent;
    color: #c9a84c;
    border: 1px solid rgba(201, 168, 76, 0.6);
    padding: 7px 16px;
    font-weight: 600;
  }
  .amalya-nav-link.amalya-gold:hover {
    background: #c9a84c;
    color: #080810;
  }
  .amalya-nav-link.amalya-gold::after { display: none; }

  /* DROPDOWN */
  .amalya-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 14px;
    min-width: 240px;
    z-index: 9999;
  }
  .amalya-nav-item:hover .amalya-dropdown { display: block; }

  .amalya-dropdown-inner {
    background: rgba(15, 16, 32, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(77, 159, 255, 0.25);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .amalya-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c8d4e8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
  }
  .amalya-dropdown-link:hover {
    color: #fff;
    background: rgba(77, 159, 255, 0.15);
  }

  .amalya-dropdown-link svg {
    width: 16px;
    height: 16px;
    color: #4d9fff;
    flex-shrink: 0;
  }

  /* MEGA MENU */
  .amalya-mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 14px;
    min-width: 600px;
    z-index: 9999;
  }
  .amalya-nav-item:hover .amalya-mega { display: block; }

  .amalya-mega-inner {
    background: rgba(15, 16, 32, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(77, 159, 255, 0.25);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  }

  .amalya-mega-title {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #c9a84c;
    margin-bottom: 16px;
    padding-left: 12px;
  }

  .amalya-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .amalya-mega-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
  }
  .amalya-mega-card:hover {
    background: rgba(77, 159, 255, 0.12);
  }

  .amalya-mega-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(77, 159, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .amalya-mega-icon svg {
    width: 18px;
    height: 18px;
    color: #4d9fff;
  }

  .amalya-mega-text { display: flex; flex-direction: column; gap: 3px; }

  .amalya-mega-name {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    line-height: 1.2;
  }
  .amalya-mega-desc {
    font-size: 11px;
    color: #8892a4;
    line-height: 1.4;
  }

  /* CTA AUDIT GRATUIT DROITE */
  .amalya-nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .amalya-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #c9a84c 0%, #b8932f 100%);
    color: #080810;
    padding: 11px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
    white-space: nowrap;
  }
  .amalya-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(201, 168, 76, 0.6);
  }
  .amalya-nav-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
  }
  .amalya-nav-cta:hover svg { transform: translateX(3px); }
.amalya-nav-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #4d9fff;
  background: transparent;
  color: #4d9fff;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.amalya-nav-demo svg {
  width: 16px;
  height: 16px;
  stroke: #4d9fff;
  transition: stroke .2s;
}
.amalya-nav-demo:hover {
  background: #4d9fff;
  color: #080810;
}
.amalya-nav-demo:hover svg {
  stroke: #080810;
}
}