/* ==========================================================================
   UDCShare — navbar-footer.css
   SOURCE DE VÉRITÉ UNIQUE pour Navbar + Footer
   Mobile-first · SaaS Premium · Zero duplication
   ========================================================================== */

/* ── Variables partagées ── */
:root {
  --nf-red:    #ff3366;
  --nf-border: rgba(255,255,255,0.08);
  --nf-bg:     rgba(10,11,17,0.97);
  --nf-muted:  rgba(255,255,255,0.45);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 64px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--nf-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nf-border);
}

/* ── Brand ── */
.navbar-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.navbar-brand-logo { display: flex; align-items: center; gap: 8px; }
.navbar-brand-text {
  font-size: 18px; font-weight: 800; color: #fff;
  letter-spacing: -0.4px; white-space: nowrap; line-height: 1;
}
.navbar-brand-text em { font-style: normal; color: var(--nf-red); }

/* ── Nav centre — Mobile-first : caché ── */
.navbar-nav {
  display: none;
  align-items: center; gap: 2px; list-style: none;
  margin: 0; padding: 0;
}

.navbar-nav > li { position: relative; }

.navbar-nav > li > a,
.navbar-nav > li > button {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,0.65); text-decoration: none;
  background: none; border: none; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.navbar-nav > li > a:hover,
.navbar-nav > li > button:hover,
.navbar-nav > li > a.active,
.navbar-nav > li > button.active {
  color: #fff; background: rgba(255,255,255,0.07);
}
.navbar-nav > li > a.active { color: var(--nf-red); background: rgba(255,51,102,0.1); }
.nav-chevron {
  width: 14px; height: 14px; flex-shrink: 0; opacity: 0.5;
  transition: transform 0.2s, opacity 0.2s;
}
.navbar-nav > li.open > button .nav-chevron { transform: rotate(180deg); opacity: 1; }

/* ── Dropdown ── */
.nav-dropdown {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: #0d0f1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 600;
  animation: dropFade 0.15s ease;
}
@keyframes dropFade { from { opacity:0; transform:translateX(-50%) translateY(-6px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
.navbar-nav > li.open .nav-dropdown { display: block; }

.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: rgba(255,255,255,0.7);
  font-size: 13px; font-weight: 500;
  transition: all 0.15s;
}
.nav-dropdown-item:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-dropdown-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,51,102,0.12); border: 1px solid rgba(255,51,102,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 15px;
}
.nav-dropdown-label { font-weight: 600; color: #fff; font-size: 13px; }
.nav-dropdown-desc { font-size: 11px; color: var(--nf-muted); line-height: 1.3; }
.nav-dropdown-divider { height: 1px; background: var(--nf-border); margin: 6px 0; }
.nav-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; margin-left: auto;
}
.nav-badge-new { background: var(--nf-red); color: #fff; }
.nav-badge-live { background: #ffcc00; color: #000; }

/* ── Admin link ── */
.nav-admin-link { color: #ffcc00 !important; }

/* ── Actions (droite) — Mobile-first : caché ── */
.navbar-actions { display: none; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-nav-login {
  padding: 7px 15px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,0.75); text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14); transition: all 0.2s;
}
.btn-nav-login:hover { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

.btn-nav-primary {
  padding: 7px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 700;
  color: #fff; text-decoration: none; background: var(--nf-red);
  transition: opacity 0.2s, transform 0.15s;
}
.btn-nav-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── User badge ── */
.navbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 6px; border-radius: 9px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--nf-border);
  cursor: default;
}
.navbar-user .avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #00cc66, #0099ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #000;
}
.navbar-user .user-info { display: flex; flex-direction: column; gap: 1px; }
.navbar-user .user-name {
  font-size: 12px; font-weight: 700; color: #fff;
  max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.navbar-user .user-plan {
  font-size: 10px; color: var(--nf-red); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── Hamburger — visible mobile ── */
.navbar-hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px; border-radius: 8px;
  transition: background 0.15s;
}
.navbar-hamburger:hover { background: rgba(255,255,255,0.06); }
.navbar-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.75); border-radius: 2px;
  transition: all 0.25s;
}
.navbar-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-hamburger.open span:nth-child(2) { opacity: 0; }
.navbar-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ── */
.navbar-mobile {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 499;
  background: rgba(8,9,13,0.99);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nf-border);
  padding: 12px 16px 24px;
  flex-direction: column; gap: 2px;
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.navbar-mobile.open { display: flex; }

.mobile-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--nf-muted); padding: 12px 12px 4px;
}

.navbar-mobile a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500;
  color: rgba(255,255,255,0.75); text-decoration: none;
  transition: all 0.15s;
}
.navbar-mobile a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.navbar-mobile a.mobile-cta {
  background: var(--nf-red); color: #fff; font-weight: 700;
  justify-content: center; margin-top: 4px;
}
.navbar-mobile a.mobile-cta:hover { opacity: 0.88; }
.mobile-divider { height: 1px; background: var(--nf-border); margin: 8px 0; }
.mobile-user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--nf-border);
  margin-bottom: 8px;
}
.mobile-user-card .avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #00cc66, #0099ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #000;
}
.mobile-user-name { font-size: 14px; font-weight: 700; color: #fff; }
.mobile-user-plan { font-size: 11px; color: var(--nf-red); font-weight: 700; text-transform: uppercase; }
.mobile-logout {
  color: rgba(255,100,100,0.8) !important;
}

/* ── Desktop breakpoint ── */
@media (min-width: 900px) {
  .navbar { padding: 0 28px; }
  .navbar-nav    { display: flex; }
  .navbar-actions{ display: flex; }
  .navbar-hamburger { display: none; }
}

/* ==========================================================================
   FOOTER SaaS Premium
   ========================================================================== */
.site-footer {
  background: #05060a;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 64px 0 0;
  margin-top: auto;
}

/* ── Trust bar ── */
.footer-trust {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 20px;
  padding: 0 24px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 48px;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4);
  letter-spacing: 0.2px;
}
.trust-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

/* ── Grid ── */
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

/* ── Brand column ── */
.footer-brand-col {}
.footer-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; margin-bottom: 14px;
}
.footer-brand-name {
  font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.4px;
}
.footer-brand-name em { font-style: normal; color: var(--nf-red); }
.footer-tagline {
  font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.65; margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-social-link {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none; font-size: 15px;
  transition: all 0.2s;
}
.footer-social-link:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
  color: #fff; transform: translateY(-2px);
}

/* ── Link columns ── */
.footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-link-badge {
  display: inline-block; font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px; margin-left: 5px;
  background: rgba(255,51,102,0.2); color: var(--nf-red);
  vertical-align: middle;
}

/* ── Bottom bar ── */
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 24px 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,0.3);
}
.footer-legal-links {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 12px; color: rgba(255,255,255,0.3);
  text-decoration: none; transition: color 0.15s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 20px; }
  .footer-trust { gap: 14px; padding: 0 20px 32px; margin-bottom: 32px; }
  .footer-bottom { padding: 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal-links { gap: 14px; }
}

/* ==========================================================================
   HAMBURGER SCRIPT (init auto)
   ========================================================================== */
