/* ═══════════════════════════════════════════════════════════
   NAV.CSS — Header fixe + Burger + Bottom nav + Floating btns
   Thinhinane Studio
   ═══════════════════════════════════════════════════════════ */

/* ── Variables locales ── */
:root {
  --header-h: 64px;
  --header-h-mobile: 56px;
  --header-bg-scroll: rgba(12, 12, 12, 0.93);
}

/* ── Compensation header fixe ── */
body {
  padding-top: var(--header-h);
}

@media (max-width: 860px) {
  body {
    padding-top: 0;
  }
}

/* ══════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;   /* au-dessus du hero, sous le lightbox (z:900+) */
  height: var(--header-h);
  background: transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease,
              box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: var(--header-bg-scroll);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(var(--theme-rgb), 0.12),
              0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.header-logo {
  flex: 0 0 auto;
  text-decoration: none;
}

.header-logo-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}

/* Nav desktop */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.header-nav a {
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--gold);
  background: rgba(var(--theme-rgb), 0.08);
}

/* Bouton CTA "Appeler" desktop */
.header-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--g30);
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex: 0 0 auto;
}

.header-cta svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.header-cta:hover {
  background: rgba(var(--theme-rgb), 0.1);
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(var(--theme-rgb), 0.2);
}

/* Burger button */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--g20);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  flex: 0 0 auto;
  padding: 0;
}

.burger-btn:hover {
  border-color: var(--g50);
  background: rgba(var(--theme-rgb), 0.06);
}

.burger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Burger animé → croix */
.burger-btn.is-open .burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger-btn.is-open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-btn.is-open .burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════
   MENU MOBILE PLEIN ÉCRAN
   ══════════════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 80px 24px 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 340px;
}

.mobile-menu-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.04em;
  transition: color 0.25s, background 0.25s;
  border: 1px solid transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--gold);
  background: rgba(var(--theme-rgb), 0.07);
  border-color: rgba(var(--theme-rgb), 0.15);
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--theme-rgb),.15), rgba(var(--theme-rgb),.06));
  border: 1px solid rgba(var(--theme-rgb), 0.4);
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.mobile-menu-cta svg {
  width: 18px;
  height: 18px;
}

.mobile-menu-cta:hover {
  background: rgba(var(--theme-rgb), 0.18);
  box-shadow: 0 0 24px rgba(var(--theme-rgb), 0.25);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE : affichage burger / masquage nav desktop
   ══════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .site-header {
    display: none !important;
  }

  .header-nav,
  .header-cta {
    display: none;
  }

  .burger-btn {
    display: flex;
    margin-left: auto;
  }
}

/* ══════════════════════════════════════════════════════
   BOUTONS FLOTTANTS MOBILES — position CSS fixe
   (drag supprimé, position stable)
   ══════════════════════════════════════════════════════ */
.mobile-floating-actions {
  /* Desktop : caché */
  display: none;
}

@media (max-width: 860px) {
  .mobile-floating-actions {
    display: none !important; /* Masqué au profit de la barre de navigation du bas */
  }

  .floating-action-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    position: relative;
    overflow: hidden;
  }

  .floating-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.28) 50%, transparent 75%);
    transform: translateX(-140%);
    animation: shimmerBtn 3.2s ease-in-out infinite;
  }

  .floating-action-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
  }

  .floating-whatsapp {
    background: linear-gradient(135deg, #25D366, #20BA5A);
  }

  .floating-whatsapp:hover,
  .floating-whatsapp:focus-visible {
    background: linear-gradient(135deg, #20BA5A, #1aad4f);
  }

  .floating-call {
    background: linear-gradient(135deg, #0f8d4d, #1ecf77);
  }

  .floating-action-btn:active {
    transform: translateY(1px);
  }

  .floating-action-btn:hover,
  .floating-action-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.56);
    filter: brightness(1.06);
    outline: none;
  }
}

/* ══════════════════════════════════════════════════════
   BOTTOM NAV MOBILE — 5 items
   ══════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 860px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 700;
    height: 64px;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(var(--theme-rgb), 0.18);
    border-radius: 0;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    padding: 6px 2px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.25s;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: var(--gold);
  }

  .mobile-nav-item span {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    color: var(--gold);
  }

  .mobile-nav-item.nav-whatsapp {
    color: #25D366;
  }
  
  .mobile-nav-item.nav-whatsapp svg {
    color: #25D366;
  }
}

/* ══════════════════════════════════════════════════════
   BACK-LINK SUBTLE (pricing.html uniquement)
   ══════════════════════════════════════════════════════ */
.back-link-subtle {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
}

.back-link-subtle:hover {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(var(--theme-rgb), 0.3);
  background: rgba(var(--theme-rgb), 0.05);
}

/* ══════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .mobile-menu,
  .burger-line,
  .header-nav a,
  .header-cta {
    transition: none !important;
    animation: none !important;
  }
}
