/* ============================================================
   NAV DROPDOWN + HAMBURGER — partagé sur toutes les pages
============================================================ */

/* ============================================================
   ANIMATED BLOB BACKGROUND — 4 independent luminous patches
   Each blob drifts at its own speed, creating non-uniform glow
============================================================ */
@keyframes blob1 {
  0%   { background-position: 15% 25%; }
  25%  { background-position: 80% 60%; }
  50%  { background-position: 55% 90%; }
  75%  { background-position: 10% 55%; }
  100% { background-position: 15% 25%; }
}
@keyframes blob2 {
  0%   { background-position: 85% 10%; }
  30%  { background-position: 20% 70%; }
  60%  { background-position: 70% 40%; }
  100% { background-position: 85% 10%; }
}
@keyframes blob3 {
  0%   { background-position: 50% 80%; }
  35%  { background-position: 90% 15%; }
  70%  { background-position: 5%  55%; }
  100% { background-position: 50% 80%; }
}
@keyframes blob4 {
  0%   { background-position: 30% 50%; }
  40%  { background-position: 75% 85%; }
  80%  { background-position: 45% 10%; }
  100% { background-position: 30% 50%; }
}

/* Animate each pseudo-layer via a single combined keyframe */
@keyframes navyWave {
  0%   { background-position: 15% 25%,  85% 10%,  50% 80%,  30% 50%; }
  15%  { background-position: 70% 50%,  30% 65%,  80% 25%,  80% 80%; }
  30%  { background-position: 20% 80%,  70% 30%,  15% 55%,  55% 20%; }
  45%  { background-position: 85% 15%,  10% 80%,  65% 90%,  10% 65%; }
  60%  { background-position: 40% 60%,  60% 20%,  35% 15%,  90% 35%; }
  75%  { background-position: 10% 35%,  90% 55%,  75% 60%,  40% 90%; }
  90%  { background-position: 60% 90%,  25% 10%,  25% 35%,  70% 10%; }
  100% { background-position: 15% 25%,  85% 10%,  50% 80%,  30% 50%; }
}

footer,
.page-hero,
.blog-hero,
.article-hero {
  background:
    radial-gradient(ellipse 55% 65% at center, rgba(60, 55, 255, 0.9)  0%, transparent 68%),
    radial-gradient(ellipse 65% 50% at center, rgba(80, 70, 255, 0.75) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at center, rgba(30, 25, 200, 0.85) 0%, transparent 72%),
    radial-gradient(ellipse 60% 55% at center, rgba(18, 14, 160, 0.80) 0%, transparent 65%),
    #010140 !important;
  background-size: 380% 420%, 300% 360%, 440% 380%, 320% 400%, 100% 100% !important;
  animation: navyWave 18s ease-in-out infinite !important;
}

nav {
  background: #050505 !important;
  animation: none !important;
}

.nav-links {
  gap: 22px !important;
}

.nav-links a {
  white-space: nowrap;
}

/* Powered-by logo */
.nav-powered { display: flex; align-items: center; gap: 6px; margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.15); }
.nav-powered span { font-size: 0.7rem; color: rgba(255,255,255,.4); letter-spacing: 0.5px; }
.nav-powered img { height: 18px; width: auto; opacity: .9; }

/* Dropdown container */
.has-dropdown { position: relative; }

.nav-dd-trigger {
  cursor: pointer;
  display: flex !important;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.75) !important;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s !important;
  background: none !important;
  border: none !important;
  font-family: inherit;
  padding: 0;
}
.nav-dd-trigger:hover,
.nav-dd-trigger.active { color: #fff !important; }

.dd-arrow {
  font-size: .6rem;
  transition: transform .2s;
  display: inline-block;
  opacity: .7;
}
.nav-dd-trigger.open .dd-arrow { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -12px;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d0dbe8;
  box-shadow: 0 20px 60px rgba(4,2,115,.14), 0 4px 16px rgba(0,0,0,.08);
  padding: 16px;
  display: none;
  z-index: 9999;
  animation: ddFade .18s ease;
}
.nav-dd-menu.open { display: block; }

@keyframes ddFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section labels (Pour les acquéreurs / cédants) */
.ndd-section {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6b7c93;
  padding: 4px 8px 6px;
}

/* Sub-group container */
.ndd-subgroup {
  margin-bottom: 4px;
}

/* Sub-group title (Sourcing & Scoring, Due Diligence & Risques…) */
.ndd-sub-title {
  font-size: .7rem;
  font-weight: 700;
  color: #040273;
  padding: 5px 8px 5px;
  letter-spacing: .1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ndd-sub-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: #EFBF04;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Grid (2 columns) */
.ndd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

/* Tool item */
.ndd-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.ndd-item:hover {
  background: #f7f9fc;
  border-color: #d0dbe8;
}
.ndd-wide { grid-column: 1 / -1; }

.ndd-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1.2;
  width: 28px;
  text-align: center;
}
.ndd-body { flex: 1; min-width: 0; }
.ndd-title {
  font-size: .83rem;
  font-weight: 700;
  color: #040273;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ndd-desc {
  font-size: .72rem;
  color: #6b7c93;
  line-height: 1.45;
}
.ndd-badge {
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #EFBF04;
  color: #040273;
  letter-spacing: .2px;
}
.ndd-lock {
  font-size: .75rem;
  margin-left: auto;
  color: #6b7c93;
  opacity: .55;
  flex-shrink: 0;
}

.ndd-divider {
  height: 1px;
  background: #e8edf5;
  margin: 10px 0;
}

/* Hamburger button */
.nav-ham {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 6px;
  transition: background .15s;
}
.nav-ham:hover { background: rgba(255,255,255,.1); }

/* ---- MOBILE ---- */
@media (max-width: 760px) {

  /* Force-hide the links list by default on mobile */
  .nav-links { display: none !important; }

  /* Show hamburger */
  .nav-ham { display: block; }

  /* Slide-down panel when open */
  .nav-links.nav-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: #040273;
    padding: 16px 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    gap: 4px;
    z-index: 9998;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav-links.nav-open > li { list-style: none; padding: 4px 0; }
  .nav-links.nav-open .nav-cta {
    text-align: center;
    display: block;
    margin-top: 8px;
  }

  /* Dropdown becomes inline on mobile */
  .nav-dd-menu {
    position: static;
    width: auto;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    margin-top: 8px;
    padding: 12px;
    animation: none;
  }
  .ndd-grid { grid-template-columns: 1fr; }
  .ndd-title  { color: #fff !important; }
  .ndd-desc   { color: rgba(255,255,255,.6) !important; }
  .ndd-section { color: rgba(255,255,255,.4); }
  .ndd-item:hover { background: rgba(255,255,255,.08); border-color: transparent; }
}
