/* =====================================================
   HAKETORET — main.css v1.0 — Shared Stylesheet
   Navbar CSS centralisé + composants partagés
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', -apple-system, sans-serif; line-height: 1.6; min-height: 100vh; }
a { text-decoration: none; }

/* =====================================================
   NAVBAR — Styles partagés toutes pages
   ===================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.nav-container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 75px;
}
.logo img { height: 55px; width: auto; display: block; }

/* Nav links */
.nav-menu {
  display: flex; align-items: center;
  gap: 4px; list-style: none;
}
.nav-menu li { display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center;
  padding: 8px 12px; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem; color: #6b7280;
  transition: color .25s, background .25s;
  white-space: nowrap; cursor: pointer;
}
.nav-link:hover { color: #2563eb; background: #f0f4ff; }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 10px 20px; border-radius: 50px;
  background: #ea580c; color: #fff !important;
  font-weight: 700; font-size: 0.9rem;
  transition: background .25s;
  white-space: nowrap;
}
.nav-cta:hover { background: #2563eb; }

/* Lang switch */
.lang-switch { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.lang-switch a { color: #9ca3af; transition: color .2s; padding: 2px 4px; }
.lang-switch a.active { color: #2563eb; }
.lang-switch a:hover { color: #2563eb; }
.lang-sep { color: #d1d5db; }

/* Mobile button */
.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 26px; cursor: pointer; color: #1f2937;
  padding: 4px;
}

/* =====================================================
   DROPDOWN QUARTIERS
   ===================================================== */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  padding: 20px 24px; min-width: 320px; z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0; height: 12px;
}
.dd-city {
  font-weight: 800; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; color: #ea580c;
  margin: 12px 0 6px; padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}
.dd-city:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 16px; }
.dd-link {
  font-size: 13.5px; font-weight: 600; color: #374151;
  padding: 4px 0; transition: color .2s; display: block;
}
.dd-link:hover { color: #ea580c; }
.dd-viewall {
  display: block; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px; font-weight: 700; color: #2563eb; text-align: center;
}
.dd-viewall:hover { color: #ea580c; }

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-menu {
    display: none;
    position: fixed; top: 75px; left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 16px 20px; gap: 4px; align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    z-index: 999; max-height: calc(100vh - 75px); overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-link { width: 100%; }
  .nav-dropdown-menu {
    position: static; transform: none;
    box-shadow: none; padding: 8px 0 8px 12px; min-width: auto;
  }
  .nav-cta { justify-content: center; width: 100%; }
  .lang-switch { padding: 8px 12px; }
}

/* =====================================================
   WHATSAPP FLOATING
   ===================================================== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  display: flex; align-items: center; gap: 10px;
}
.wa-bubble {
  width: 56px; height: 56px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float:hover .wa-bubble { transform: scale(1.1); }
.wa-bubble svg { width: 28px; height: 28px; fill: #fff; }

/* =====================================================
   COOKIE BANNER
   ===================================================== */
#hak-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  background: #1a1a2e; color: #fff;
  padding: 16px 24px; display: flex;
  align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-family: 'Nunito', sans-serif; font-size: 14px;
}
#hak-cookie-banner a { color: #e8a54b; text-decoration: underline; }
.hak-cookie-btns { display: flex; gap: 10px; }
.hak-ca {
  background: #e8a54b; color: #fff; border: none;
  padding: 8px 20px; border-radius: 6px; cursor: pointer; font-weight: 600;
}
.hak-cd {
  background: transparent; color: #aaa;
  border: 1px solid #aaa; padding: 8px 16px;
  border-radius: 6px; cursor: pointer;
}
