/*!
 * AuthifyMe Pay — Navigation mutualisée (style bleu marine)
 * Palette : bleu marine #091a2a / or #c9a84c
 */

/* ========== NAVBAR ========== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #091a2a;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .25s;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: .75rem 1.8rem;
  display: flex; align-items: center; gap: 2rem;
}

/* ========== LOGO ========== */
.nav-logo {
  display: inline-flex; align-items: center; gap: .75rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 36px; width: 36px;
  display: block;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: 1.25rem;
  color: #fff; letter-spacing: .01em;
  line-height: 1;
}
.nav-logo-text span {
  color: #c9a84c;
  font-style: italic;
  margin-left: .15rem;
}

/* ========== LIENS ========== */
.nav-links {
  display: flex; align-items: center; gap: 0;
  list-style: none; margin: 0 auto; padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .8rem 1.2rem;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .15s;
  user-select: none;
}
.nav-link:hover { color: #c9a84c; }
.nav-link.active {
  color: #c9a84c;
  position: relative;
}
.nav-link.active::after {
  content: ''; position: absolute;
  left: 1.2rem; right: 1.2rem; bottom: .4rem;
  height: 2px; background: #c9a84c; border-radius: 1px;
}
.nav-chevron {
  width: 10px; height: 6px; margin-left: .3rem;
  color: #c9a84c;
  transition: transform .2s;
}
.has-dropdown:hover .nav-chevron,
.has-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

/* ========== MEGA MENU ========== */
.mega-menu {
  position: absolute; top: 100%; left: 0;
  margin-top: 0;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
  padding: 1.4rem;
  min-width: 280px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 200;
}
.has-dropdown:hover .mega-menu,
.has-dropdown.open .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-menu.mega-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem;
  min-width: 600px;
}
.mega-menu.mega-1col { min-width: 340px; }
.mega-col-title {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #c9a84c;
  font-weight: 700;
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(9, 26, 42, .08);
}
.mega-link {
  display: block;
  padding: .65rem .8rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
  margin: 0 -.3rem;
}
.mega-link:hover { background: rgba(201, 168, 76, .08); }
.mega-link-title {
  display: block;
  color: #091a2a;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .15rem;
}
.mega-link:hover .mega-link-title { color: #c9a84c; }
.mega-link-desc {
  display: block;
  font-size: .78rem;
  color: #6b7684;
  line-height: 1.4;
}
/* Easter egg (RH Sprint) — touche ludique discrète */
.mega-link-egg {
  border-top: 1px dashed rgba(201,168,76,.35);
  margin-top: .5rem;
  padding-top: .9rem !important;
}
.mega-link-egg .mega-link-title {
  color: #c9a84c;
}

/* ========== CTA ========== */
.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #c9a84c;
  color: #091a2a !important;
  padding: .7rem 1.4rem;
  border-radius: 4px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  border: 2px solid transparent;
}
.nav-cta:hover {
  background: #e8d48b;
  color: #091a2a !important;
}
.nav-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: transparent; border: none;
  padding: 8px; cursor: pointer;
  flex-shrink: 0; margin-left: auto;
}
.hamburger span {
  width: 22px; height: 2px;
  background: #fff; border-radius: 1px;
  transition: transform .2s;
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 380px;
  background: #091a2a;
  padding: 4.5rem 1.5rem 2rem;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .4);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.05);
  z-index: 300;
  overflow-y: auto;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  background: transparent; border: none;
  font-size: 1.8rem; color: #fff;
  cursor: pointer; line-height: 1;
}
.mm-link {
  display: block;
  padding: 1rem .6rem;
  color: #fff; text-decoration: none;
  font-size: .92rem; font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mm-link:hover, .mm-link.active { color: #c9a84c; }
.mm-group {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mm-group > summary {
  list-style: none;
  padding: 1rem .6rem;
  color: #fff; font-weight: 600;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.mm-group > summary::-webkit-details-marker { display: none; }
.mm-group > summary::after {
  content: '▾'; color: #c9a84c;
  font-size: .9rem; transition: transform .2s;
}
.mm-group[open] > summary::after { transform: rotate(180deg); }
.mm-group a {
  display: block;
  padding: .55rem 1.2rem;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .02em;
  text-transform: none;
  border-left: 2px solid rgba(201, 168, 76, .2);
  margin-left: .6rem;
}
.mm-group a:hover { color: #c9a84c; border-left-color: #c9a84c; }
.mm-sub-title {
  padding: .7rem 1.2rem .3rem;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #c9a84c;
  font-weight: 700;
  margin-left: .6rem;
}
.mm-cta {
  display: block;
  margin: 1.5rem 0 1rem;
  padding: 1rem;
  background: #c9a84c;
  color: #091a2a !important;
  text-align: center;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mm-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; gap: .8rem;
}
.mm-contact a {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  font-size: .88rem;
}
.mm-contact a:hover { color: #c9a84c; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: .9rem 1.2rem; }
  .nav-logo-text { font-size: 1rem; }
  .nav-logo img { height: 36px; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none; }
}
