/* ============================================================
   ELLOHOST — nav.css
   Header, navigation, mega menu, footer
   ============================================================ */

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,8,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(7,8,15,0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ---- LOGO ---- */
.nav-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  max-width: 220px !important;
  max-height: 60px !important;
  overflow: hidden !important;
  line-height: 0 !important;
}
.nav-logo .custom-logo-link { display: flex; align-items: center; }

/* Cap STRICT : jamais plus de 100×25 px. On cible TOUT :
   - .nav-logo img : si l'image est bien dans le conteneur
   - .custom-logo et .custom-logo-link img : si la réécriture HTML5 a fait sortir
     l'<a class="custom-logo-link"> du conteneur (cas d'<a> imbriqués)
   - body .custom-logo : sécurité, capture absolument toute image custom-logo de WP
   Le !important neutralise toute règle plus spécifique côté thème, plugin ou attribut HTML. */
#site-header .nav-logo img,
#site-header .nav-logo .custom-logo,
#site-header .nav-logo .custom-logo-link img,
#site-header .custom-logo,
#site-header .custom-logo-link img {
  width: auto !important;
  height: auto !important;
  max-width: 200px !important;
  max-height: 50px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 600px) {
  #site-header .nav-logo img,
  #site-header .nav-logo .custom-logo,
  #site-header .nav-logo .custom-logo-link img,
  #site-header .custom-logo,
  #site-header .custom-logo-link img {
    max-width: 150px !important;
    max-height: 42px !important;
  }
}

/* Logo texte fallback */
.site-logo-text {
  display: inline-flex;
  align-items: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo-ello { color: var(--rose); }
.logo-host { color: var(--white); }

/* Footer logo */
.footer-logo-wrap { margin-bottom: 1rem; }
.footer-logo-wrap .custom-logo-link { display: inline-flex; }
.footer-logo-wrap .custom-logo-link img {
  height: 30px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(1.1);
}
.footer-logo-wrap .site-logo-text {
  font-size: 1.3rem;
}

/* ---- NAV MENU ---- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-item { position: relative; }

/* Transparent bridge fills the 12px gap so cursor doesn't leave .has-mega
   and trigger CSS :hover loss when moving from nav-link to mega-panel */
.has-mega::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -8px; right: -8px;
  height: 12px; /* must match top offset in .mega-panel */
  z-index: 199;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey2);
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-arrow { transition: transform var(--transition); flex-shrink: 0; }
.has-mega:hover .nav-arrow { transform: rotate(180deg); }

.nav-link-highlight {
  color: var(--rose) !important;
  font-weight: 700;
}
.nav-link-highlight:hover { background: var(--rose-light) !important; }

/* ---- MEGA MENU ---- */
.mega-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  min-width: 480px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.mega-panel::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 8px;
  background: var(--card);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.mega-inner {
  display: flex;
  gap: 0;
  padding: 1.5rem;
}

.mega-col {
  flex: 1;
  min-width: 180px;
}
.mega-col + .mega-col {
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
  margin-left: 1.25rem;
}

.mega-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey);
  margin-bottom: 0.75rem;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  transition: background var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.mega-link:hover { background: rgba(255,255,255,0.04); }
.mega-link strong { display: block; font-size: 0.9rem; color: var(--white); font-weight: 600; line-height: 1.3; }
.mega-link em { display: block; font-size: 0.78rem; color: var(--grey); font-style: normal; margin-top: 0.1rem; }
.mega-link span:not(.mega-link-icon) { line-height: 1.3; }

.mega-link-icon {
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}

/* ---- NAV RIGHT ---- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-espace-client {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-espace-client:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--rose), var(--rose2));
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,62,138,0.3);
}
.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,62,138,0.45);
}

/* ---- BURGER ---- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  flex-shrink: 0;
  margin-left: auto;
}
.nav-burger:hover { border-color: var(--rose); }

.burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-burger.active .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active .burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.active .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MOBILE OVERLAY ---- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.active { opacity: 1; }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
  opacity: 0;
  transform: scale(0.7) translateY(20px);
  pointer-events: none;
  text-decoration: none;
}
.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--card2);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ============================================================
   BOUTON RDV / CALENDLY (positionné au-dessus de WhatsApp)
   ============================================================ */
.rdv-float {
  position: fixed;
  bottom: 5.5rem; /* 2rem (WA) + 56px (WA height) + 0.75rem gap ≈ 5.5rem */
  right: 2rem;
  z-index: 9997;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), #9B5DFF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(155,93,255,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
  opacity: 0;
  transform: scale(0.7) translateY(20px);
  pointer-events: none;
  text-decoration: none;
}
.rdv-float.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}
.rdv-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px rgba(155,93,255,0.65);
}

.rdv-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--card2);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.rdv-float:hover .rdv-tooltip { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--noir2);
  border-top: 1px solid var(--border);
  padding: 5rem 0 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

/* Brand column */
.footer-brand {}

.footer-logo {
  display: inline-flex;
  align-items: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 1rem;
  line-height: 1;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--grey);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--rose); color: var(--white); background: var(--rose-light); }
.social-link svg { flex-shrink: 0; }

.social-count { font-size: 0.75rem; color: var(--grey); }

.footer-reviews {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey2);
  text-decoration: none;
  transition: all var(--transition);
}
.review-badge:hover { border-color: var(--jaune); color: var(--white); }
.review-stars { color: var(--jaune); }

/* Footer columns */
.footer-col {}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--grey);
  text-decoration: none;
  transition: color var(--transition);
  display: block;
}
.footer-link:hover { color: var(--white); }

.footer-link-highlight { color: var(--rose); font-weight: 600; }
.footer-link-highlight:hover { color: var(--rose2); }

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-contact-link svg { flex-shrink: 0; color: var(--rose); }

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: var(--grey);
}

.footer-bottom-right { display: flex; align-items: center; gap: 1rem; }

.footer-trustpilot {
  color: var(--jaune);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-trustpilot:hover { color: var(--white); }
