/* =====================================================
   ALIANOW — main.css  v2.0 — Shared Stylesheet
   IMPORTANT: Nav et Hero NON définis ici —
   chaque page gère ses propres styles nav/hero
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* =====================================================
   MEGA-MENU
   ===================================================== */
.mega-dropdown { position: relative; }
.mega-trigger  { cursor: pointer; }
.dd-arrow      { font-size: .7rem; margin-left: 2px; }
.mega-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 24px 28px;
  min-width: 640px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 200;
}
.mega-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 16px;
}
.mega-dropdown:hover .mega-panel { display: block; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.mega-col { display: flex; flex-direction: column; gap: 4px; }
.mega-city {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #1e3a5f; margin-bottom: 4px;
}
.mega-link { font-size: .82rem; color: #4a6080; padding: 2px 0; text-decoration: none; }
.mega-link:hover { color: #c9a84c; }
.mega-footer {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  text-align: center;
}
.mega-all { font-size: .85rem; font-weight: 600; color: #c9a84c; text-decoration: none; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }

/* =====================================================
   BREADCRUMBS
   ===================================================== */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 12px 20px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .82em; color: #64748b;
}
.breadcrumb a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #f59e0b; }
.breadcrumb .sep { color: #334155; }
.breadcrumb .current { color: #f59e0b; font-weight: 500; }

/* =====================================================
   FOOTER SOCIAL ICONS
   ===================================================== */
.footer-social {
  display: flex; justify-content: center; gap: 16px; margin: 16px 0;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  color: #c9a84c; text-decoration: none;
  transition: all 0.25s; margin: 0;
}
.footer-social a:hover { background: #c9a84c; color: #0f172a; transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: #0f172a;
  border-top: 1px solid rgba(201,168,76,.3);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
  font-size: .85em; color: #94a3b8;
}
#cookie-banner a { color: #c9a84c; text-decoration: underline; }
#cookie-banner button {
  background: #c9a84c; color: #0f172a;
  border: none; padding: 10px 24px; border-radius: 8px;
  font-weight: 600; font-size: .9em; cursor: pointer;
}
#cookie-banner button.decline {
  background: transparent; color: #64748b;
  border: 1px solid #334155; padding: 10px 18px;
}

/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 8999;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.wa-bubble {
  width: 58px; height: 58px;
  background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform 0.25s;
}
.wa-float:hover .wa-bubble { transform: scale(1.1); }
.wa-bubble svg { width: 30px; height: 30px; fill: #fff; }
.wa-tooltip {
  background: #0f1d32; color: #fff;
  padding: 6px 12px; border-radius: 8px;
  font-size: .82em; white-space: nowrap;
  opacity: 0; transition: opacity 0.2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .mega-panel { position: static; transform: none; min-width: auto; border: none; padding: 8px 0; box-shadow: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wa-float { bottom: 20px; right: 16px; }
  .wa-bubble { width: 52px; height: 52px; }
  #cookie-banner { padding: 14px 16px; }
}

/* Mobile Menu Open State */
.nav.menu-open .nav-menu,
nav.menu-open .nav-links {
    display: flex !important;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
}
.nav.menu-open .lang-switch {
    display: flex !important;
    justify-content: center;
}

/* Mobile nav-links open (neighborhood pages) */
@media(max-width:900px) {
    .nav-links.open {
        display: flex !important;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        z-index: 999;
    }
    .nav-links.open a {
        color: #1e3a5f !important;
        font-size: 1rem;
        padding: 8px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}
