/* ============================================================
   Cabinet ExpertImmo — CSS partagé Header + Footer
   Fichier source unique pour TOUTES les pages du site.
   Pour modifier l'apparence du header ou du footer,
   c'est ici qu'il faut éditer.
   ============================================================ */

/* ─── NAVBAR ─── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: padding 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 5%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 46px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.logo-carea {
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 2px;
  font-family: var(--font-body);
  font-weight: 500;
  display: block;
  text-transform: uppercase;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-light);
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links li a:hover::after {
  width: 100%;
}

.cta-button {
  background-color: var(--accent);
  color: white !important;
  padding: 0.7rem 1.4rem;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 0.88rem;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
  background-color: var(--primary);
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.3);
  transform: translateY(-2px);
}

/* Hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--primary-light);
  color: white;
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  display: inline-block;
}

.footer-carea {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  margin-top: 0.8rem;
  line-height: 1.7;
}

.footer-title {
  color: white;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .navbar .cta-button {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    color: white !important;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 600;
  }

  .mobile-menu .cta-button {
    display: inline-block;
    font-size: 1rem;
  }
}

/* ─── GLOBAL BACKGROUND WITH LAC ANOSY ─── */
html {
  background-color: var(--bg-color, #FAFAFA);
}
body {
  background-color: transparent !important;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../Lac%20anosy.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05; /* 5% */
  z-index: -1;
  pointer-events: none;
}

/* ─── MAKE TEXT SECTIONS TRANSPARENT FOR BACKGROUND IMAGE ─── */
.legal-content,
.article-content,
.glossaire-toc,
.glossaire-entry {
  background: transparent !important;
}
