/* ======================================================
   Netora — Components CSS (header + footer global)
   À charger sur TOUTES les pages publiques qui utilisent
   /assets/js/components.js
   ====================================================== */

/* ── NAV (pill, identique à la home) ──────────────── */
.nav-wrap{
  position:fixed;top:16px;left:0;right:0;z-index:100;
  display:flex;justify-content:center;
  pointer-events:none;
}
.nav{
  pointer-events:auto;
  display:flex;align-items:center;gap:8px;
  padding:8px 8px 8px 20px;
  background:rgba(10,13,11,.6);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  backdrop-filter:blur(20px) saturate(160%);
  border:1px solid var(--border, rgba(255,255,255,.06));
  border-radius:100px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 8px 32px rgba(0,0,0,.4);
  width:min(920px, 100vw - 32px);
}
.nav-logo{
  display:flex;align-items:center;gap:9px;
  font-weight:600;font-size:15px;letter-spacing:-.02em;
  margin-right:8px;text-decoration:none;color:var(--white, #F8FDF9);
  flex-shrink:0;
}
.nav-logo-img{height:24px;width:auto;display:block}
.nav-links{
  display:flex;gap:2px;flex:1;
  list-style:none;margin:0;padding:0;
}
.nav-link, .nav-links a{
  padding:8px 14px;font-size:13.5px;
  color:rgba(248,253,249,.7);
  border-radius:100px;
  text-decoration:none;
  white-space:nowrap;
  transition:color .2s, background .2s;
}
.nav-link:hover, .nav-links a:hover{
  color:var(--white, #F8FDF9);
  background:rgba(255,255,255,.04);
}
.nav-cta-ghost{
  padding:8px 14px;font-size:13.5px;
  color:rgba(248,253,249,.7);
  border-radius:100px;
  text-decoration:none;
  white-space:nowrap;
  transition:color .2s;
}
.nav-cta-ghost:hover{color:var(--white, #F8FDF9)}
.nav-cta{
  padding:8px 16px;font-size:13.5px;font-weight:500;
  background:var(--white, #F8FDF9);
  color:#061008;
  border-radius:100px;
  text-decoration:none;
  transition:transform .15s, box-shadow .2s, background .2s;
  display:inline-flex;align-items:center;gap:4px;
  white-space:nowrap;
}
.nav-cta:hover{
  background:var(--green-light, #5DCAA5);
  box-shadow:0 0 0 4px rgba(93,202,165,.15), 0 0 24px rgba(93,202,165,.4);
}
.nav-burger{
  display:none;
  width:40px;height:40px;border-radius:100px;
  align-items:center;justify-content:center;flex-direction:column;gap:5px;
  margin-left:auto;
  background:transparent;border:0;cursor:pointer;
  transition:background .2s;
}
.nav-burger:hover{background:rgba(255,255,255,.05)}
.nav-burger span{
  display:block;width:18px;height:2px;
  background:var(--white, #F8FDF9);border-radius:2px;
  transition:transform .25s, opacity .2s;
}
.nav-burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-burger.open span:nth-child(2){opacity:0}
.nav-burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ── MOBILE MENU ─────────────────────────── */
.mobile-menu{
  position:fixed;inset:0;z-index:99;
  background:rgba(5,7,6,.95);
  -webkit-backdrop-filter:blur(24px);
  backdrop-filter:blur(24px);
  opacity:0;pointer-events:none;
  transform:translateY(-12px);
  transition:opacity .3s, transform .3s;
  padding:100px 24px 40px;
  overflow-y:auto;
}
.mobile-menu.open{opacity:1;pointer-events:auto;transform:translateY(0)}
.mobile-menu-inner{
  max-width:480px;margin:0 auto;
  display:flex;flex-direction:column;gap:4px;
}
.mobile-link{
  display:block;padding:18px 20px;
  font-size:22px;font-weight:500;letter-spacing:-.02em;
  color:var(--white, #F8FDF9);
  border-radius:14px;
  text-decoration:none;
  transition:background .15s, color .15s;
}
.mobile-link:hover, .mobile-link:active{
  background:rgba(74,222,128,.08);
  color:var(--green-light, #5DCAA5);
}
.mobile-link-muted{font-size:16px;color:rgba(248,253,249,.55)}
.mobile-menu-divider{
  height:1px;background:var(--border, rgba(255,255,255,.06));
  margin:16px 0;
}
.mobile-cta{
  margin-top:16px;justify-content:center;
  font-size:16px;padding:16px 24px;
  background:var(--white, #F8FDF9);color:#061008;
  border-radius:100px;font-weight:500;
  display:inline-flex;align-items:center;gap:6px;
  text-decoration:none;
}
.mobile-cta:hover{
  background:var(--green-light, #5DCAA5);
  color:#061008;
}

/* ── NAV RESPONSIVE ───────────────────────── */
@media(max-width:880px){
  .nav-links, .nav-cta-ghost, .nav-cta{display:none}
  .nav-burger{display:flex}
  .nav{padding:6px 6px 6px 16px}
}
@media(max-width:720px){
  .nav{padding-left:14px;padding-right:14px}
}

/* ── FOOTER (rich, multi-column) ────────────────── */
footer#footer-main{
  border-top:.5px solid var(--border, rgba(29,158,117,.18));
  padding:5rem 3rem 2.5rem;
  margin-top:5rem;
  background:transparent;
}
footer#footer-main .footer-container{
  max-width:1200px;margin:0 auto;width:100%;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr repeat(4, 1fr);
  gap:3rem;
  margin-bottom:4rem;
}
.footer-brand-mark{
  display:flex;align-items:center;gap:.6rem;
  margin-bottom:1rem;
}
.footer-brand-mark .footer-logo-img{height:30px;width:auto;display:block}
.footer-brand p{
  color:rgba(248,253,249,.55);
  font-size:.9rem;
  max-width:32ch;
  line-height:1.55;
  margin:0;
}
.footer-col h4{
  font-family:"JetBrains Mono", ui-monospace, monospace;
  font-size:.7rem;
  color:rgba(248,253,249,.5);
  text-transform:uppercase;
  letter-spacing:.12em;
  margin:0 0 1rem 0;
  font-weight:500;
}
.footer-col ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:.6rem;
  padding:0;margin:0;
}
.footer-col a{
  color:rgba(248,253,249,.7);
  font-size:.88rem;
  text-decoration:none;
  transition:color .2s;
}
.footer-col a:hover{color:var(--green-light, #5DCAA5)}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:2rem;
  border-top:.5px solid var(--border, rgba(29,158,117,.18));
  font-size:.82rem;
  color:rgba(248,253,249,.45);
  flex-wrap:wrap;
  gap:1rem;
}
.footer-status{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:"JetBrains Mono", ui-monospace, monospace;
}
.footer-status .live{
  width:7px;height:7px;border-radius:50%;
  background:var(--green-light, #5DCAA5);
  box-shadow:0 0 8px var(--green-light, #5DCAA5);
  display:inline-block;
}

/* Backwards-compat — hide legacy simple-footer markup if present */
footer#footer-main > a.footer-logo,
footer#footer-main > .footer-links{display:none}

/* ── RESPONSIVE ───────────────────────────────────── */
@media(max-width:960px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:2.5rem}
}
@media(max-width:768px){
  nav#nav-main{padding:1rem 1.5rem}
  .nav-links,.nav-cta{display:none}
  .hamburger{display:flex}
  footer#footer-main{padding:3rem 1.5rem 1.8rem;margin-top:3rem}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:.6rem}
}
@media(max-width:540px){
  .footer-grid{grid-template-columns:1fr;gap:2rem;margin-bottom:2.5rem}
}
