/* ════════ NAV BIMREVO — même concept que GEOREVO : pilule marine flottante (bureau) + barre claire & menu burger (mobile) ════════ */
.nav {
  --nav-brand: #04044A;
  --nav-sep: #98A2B0;
  --nav-t1: #1A56E8; --nav-t2: #D4A40D; --nav-t3: #1D9E75;
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,250,254,0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--g-200);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  position: relative;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.nav-logo:hover { text-decoration: none; }
.nav-cube { width: 42px; height: 42px; flex-shrink: 0; }
.nav-brand { display: block; font-size: 24px; font-weight: 900; color: var(--nav-brand, #fff); letter-spacing: 1.5px; line-height: 1; }
.nav-tagline { display: flex; gap: 5px; align-items: center; margin-top: 4px; font-size: 9px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; line-height: 1; }
.nav-tagline .t1 { color: var(--nav-t1, #6C93FF); }
.nav-tagline .t2 { color: var(--nav-t2, #F5C518); }
.nav-tagline .t3 { color: var(--nav-t3, #34C79A); }
.nav-tagline .sep { color: var(--nav-sep, rgba(255,255,255,0.45)); font-weight: 400; }

/* — Mobile : panneau déroulant sous la barre, aligné à droite — */
.nav-links {
  position: absolute; top: calc(100% + 1px); right: 12px;
  width: min(300px, calc(100vw - 24px)); max-height: min(80vh, 560px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 0; padding: 0.25rem 0;
  background: #fff; border: 1px solid var(--g-200); border-radius: 0 0 16px 16px;
  box-shadow: 0 14px 30px rgba(4,4,74,0.14);
  transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .25s, opacity .25s, visibility .25s;
  overscroll-behavior: contain;
}
.nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
.nav-link {
  display: flex; align-items: center; min-height: 48px; padding: 0 1.25rem;
  font-size: 15px; font-weight: 600; color: #04044A; text-decoration: none;
  border-bottom: 1px solid var(--g-100); transition: color .2s, background .2s;
}
.nav-link:hover { color: #000675; text-decoration: none; background: rgba(0,164,255,0.10); }
.nav-link.active { color: #000675; font-weight: 800; }
.nav-cta {
  display: flex; align-items: center; justify-content: center; margin: 0.75rem 1.25rem 0.6rem;
  padding: 12px 18px; background: #000675; color: #fff; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.4px; line-height: 1.2;
  text-decoration: none; transition: all .2s;
}
.nav-cta:hover { background: #00A4FF; color: #04044A; text-decoration: none; }

.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; flex: none;
  border: 0; background: transparent; cursor: pointer;
}
.nav-burger span { display: block; height: 2.5px; width: 100%; background: #04044A; border-radius: 2px; transition: .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 560px) {
  .nav-tagline { display: none; }
  .nav-brand { font-size: 19px; letter-spacing: 1px; }
  .nav-cube { width: 32px; height: 32px; }
  .nav-logo { gap: 9px; }
}

/* — Bureau : pilule marine flottante — */
@media (min-width: 1060px) {
  .nav {
    --nav-brand: #fff; --nav-sep: rgba(255,255,255,0.45);
    --nav-t1: #6C93FF; --nav-t2: #F5C518; --nav-t3: #34C79A;
    background: transparent; border-bottom: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 14px clamp(16px, 5vw, 72px);
  }
  .nav-inner {
    max-width: none; width: 100%; margin: 0; height: 68px; padding: 0 2rem;
    background: #000675; border: 1px solid rgba(0,164,255,0.55); border-radius: 1000px;
    box-shadow: 0 14px 34px rgba(0,6,117,0.28);
    backdrop-filter: blur(4.5px); -webkit-backdrop-filter: blur(4.5px);
  }
  .nav-burger { display: none; }
  .nav-links {
    position: static; width: auto; max-height: none; overflow: visible;
    flex-direction: row; align-items: center; gap: 24px; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    transform: none; opacity: 1; pointer-events: auto; visibility: visible;
  }
  .nav-link {
    min-height: 0; padding: 0.4rem 0; border: 0; background: none;
    font-size: 14px; letter-spacing: -0.1px; color: #fff; white-space: nowrap;
  }
  .nav-link:hover, .nav-link.active { color: #00E7FF; background: none; font-weight: 600; }
  .nav-cta {
    margin: 0; padding: 10px 20px; white-space: nowrap;
    background: #00E7FF; color: #04044A;
  }
  .nav-cta:hover { background: #fff; color: #000675; transform: translateY(-1px); }
}

/* ── menu déroulant Fonctionnalités ── */
.nav-drop { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--g-100); }
.nav-drop .nav-drop-link { flex: 1; border-bottom: 0; }
.nav-drop-btn {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 48px; flex: none;
  border: 0; background: transparent; color: #04044A; cursor: pointer; border-radius: 10px;
}
.nav-drop-btn svg { transition: transform .2s; }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
/* mobile : liste dépliable dans le panneau */
.nav-menu { flex-basis: 100%; display: none; background: #f1f7ff; padding: 4px 0 8px; }
.nav-drop.open .nav-menu { display: block; }
.nav-menu a { display: flex; align-items: center; min-height: 44px; padding: 6px 1.25rem 6px 2rem; text-decoration: none; color: #04044A; border: 0; }
.nav-menu a b { font-size: 14.5px; font-weight: 600; }
.nav-menu a span { display: none; }
.nav-menu a:hover, .nav-menu a.on { background: rgba(0, 164, 255, .12); color: #000675; }
.nav-menu a.on b { font-weight: 800; }
.nav-menu .nav-menu-all { font-size: 13.5px; font-weight: 700; color: #000675; }

@media (min-width: 1060px) {
  .nav-drop { flex-wrap: nowrap; border-bottom: 0; gap: 2px; }
  .nav-drop .nav-drop-link { flex: none; }
  .nav-drop-btn { width: 26px; height: 26px; color: #fff; border-radius: 8px; }
  .nav-drop-btn:hover { background: rgba(255, 255, 255, .12); color: #00E7FF; }
  .nav-drop.open .nav-drop-btn, .nav-drop:hover .nav-drop-btn { color: #00E7FF; }
  .nav-drop:hover .nav-drop-link, .nav-drop.open .nav-drop-link { color: #00E7FF; }
  /* le panneau s'ancre sur la pilule, aligné à droite */
  .nav-menu {
    position: absolute; top: calc(100% + 10px); right: 1.25rem; z-index: 120;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: min(640px, calc(100vw - 2 * var(--pad-x, 72px)));
    padding: 10px; border-radius: 18px; background: linear-gradient(160deg, rgba(0, 6, 117, .98) 0%, rgba(4, 4, 74, .97) 100%);
    border: 1px solid rgba(0, 164, 255, .45); box-shadow: 0 28px 60px rgba(4, 4, 74, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  }
  /* zone invisible entre le lien et le panneau : le survol ne se perd pas en chemin */
  .nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -44px; height: 44px; }
  .nav-drop .nav-menu, .nav-drop.open .nav-menu { display: grid; }
  .nav-drop.open .nav-menu, .nav-drop:focus-within .nav-menu {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  @media (hover: hover) { .nav-drop:hover .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }
  .nav-menu a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 64px; padding: 11px 16px; border-radius: 12px; color: #fff; }
  .nav-menu a b { font-size: 14.5px; color: #fff; }
  .nav-menu a span { display: block; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .72); font-weight: 500; }
  .nav-menu a:hover, .nav-menu a:focus-visible, .nav-menu a.on { background: rgba(255, 255, 255, .10); color: #fff; }
  .nav-menu a:hover b, .nav-menu a:focus-visible b, .nav-menu a.on b { color: #00E7FF; }
  .nav-menu .nav-menu-all { grid-column: 1 / -1; flex-direction: row; justify-content: center; min-height: 46px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .14); border-radius: 0 0 12px 12px; color: #00E7FF; }
}

/* petites largeurs « bureau » : on libère de la place (la page Tarifs a le plus de liens) */
@media (min-width: 1060px) and (max-width: 1279px) {
  .nav-links { gap: 18px; }
  .nav-link[href="#compare"], .nav-link[href="#faq"] { display: none; }
}
