
/* Main CSS - Big Wambss - Plomberie & Quincaillerie */

/* Import des variables et polices */
@import url('./variables.css');
@import url('./fonts.css');

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--gray-900);
  letter-spacing: 0.02em;
}

h1 { font-size: var(--text-5xl); text-transform: uppercase; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  color: var(--gray-700);
}

a {
  color: var(--wambss-blue);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--wambss-blue-dark);
}

/* === LAYOUT === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: 100px 0;
  margin: 40px 0;
}

.section-sm {
  padding: 60px 0;
  margin: 20px 0;
}

.section-lg {
  padding: 160px 0;
  margin: 60px 0;
}

/* === NAVIGATION PREMIUM === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  transition: all var(--transition-base);
  padding: var(--space-6) 0;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: var(--space-3) 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(0, 174, 239, 0.1);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  z-index: 1010;
}

.navbar-logo {
  height: auto;
  max-height: 60px;
  width: auto;
  transition: all var(--transition-base);
}

.navbar.scrolled .navbar-logo {
  max-height: 45px;
}

/* Menu Desktop */
.navbar-nav {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  color: var(--wambss-blue); /* Bleu par défaut pour visibilité */
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) 0;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar.scrolled .nav-link {
  color: var(--gray-800); /* Devient sombre au scroll */
}

.nav-link i {
  font-size: 0.9em;
  opacity: 0.8;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--wambss-blue);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--wambss-blue-dark) !important;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.navbar-contact-info .phone-link {
  color: var(--wambss-blue);
  font-weight: 600;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar.scrolled .navbar-contact-info .phone-link {
  color: var(--gray-800);
}

.navbar-contact-info .phone-link i {
  color: var(--wambss-blue);
}

.btn-cta-nav {
  display: flex;
  align-items: center;
  background: var(--gradient-copper);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3);
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(184, 115, 51, 0.4);
  color: var(--white) !important;
}

/* Toggle Menu */
.navbar-toggle {
  display: none;
  background: rgba(0, 174, 239, 0.1);
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-md);
  z-index: 1030;
  transition: all var(--transition-base);
}

.navbar-toggle:hover {
  background: rgba(0, 174, 239, 0.2);
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--wambss-blue);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.navbar.scrolled .hamburger span {
  background-color: var(--gray-800);
}

.navbar-toggle.active .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar-toggle.active .hamburger span:nth-child(2) { opacity: 0; }
.navbar-toggle.active .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === RESPONSIVE NAVBAR === */
@media (max-width: 992px) {
  /* ── Panneau latéral mobile ── */
  .navbar-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: min(320px, 88vw);
    height: 100vh;
    background: #0f172a;
    flex-direction: column;
    padding: 0;
    gap: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    z-index: 1020;
    overflow-y: auto;
    overflow-x: hidden;
    list-style: none;
  }

  /* Barre de couleur cuivre en haut du panneau */
  .navbar-nav::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--wambss-copper), var(--wambss-blue), var(--wambss-copper));
    flex-shrink: 0;
  }

  .navbar-nav.active {
    transform: translateX(0);
  }

  /* ── Header du menu mobile (logo) ── */
  .mobile-menu-header {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 1.4rem 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    list-style: none;
  }

  .mobile-menu-logo {
    height: 44px;
    width: auto;
  }

  .mobile-menu-brand {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  /* ── Items de navigation ── */
  .nav-item {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    list-style: none;
    padding: 0 1rem;
  }

  .navbar-nav.active .nav-item {
    opacity: 1;
    transform: translateX(0);
  }

  /* staggered delays basés sur leur ordre global dans la liste */
  .navbar-nav.active .nav-item:nth-child(2) { transition-delay: 0.07s; }
  .navbar-nav.active .nav-item:nth-child(3) { transition-delay: 0.14s; }
  .navbar-nav.active .nav-item:nth-child(4) { transition-delay: 0.21s; }
  .navbar-nav.active .nav-item:nth-child(5) { transition-delay: 0.28s; }

  .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 0.75rem;
    background: transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border-left: 3px solid transparent;
    transition: all 0.22s ease;
    text-shadow: none;
    text-decoration: none;
  }

  .nav-link:hover {
    color: var(--wambss-copper) !important;
    border-left-color: var(--wambss-copper);
    background: rgba(184, 115, 51, 0.08);
    transform: translateX(4px);
  }

  .nav-link i {
    width: 20px;
    text-align: center;
    color: var(--wambss-copper);
    font-size: 0.95rem;
    flex-shrink: 0;
    opacity: 0.9;
  }

  .nav-link::after { display: none; }

  /* Séparateur entre les items */
  .nav-item + .nav-item {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  /* ── Footer du menu mobile (CTA) ── */
  .mobile-menu-cta {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: auto;
    list-style: none;
    flex-shrink: 0;
  }

  .mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--wambss-copper);
    color: var(--white) !important;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.22s ease;
    box-shadow: 0 4px 16px rgba(184, 115, 51, 0.35);
  }

  .mobile-cta-btn:hover {
    background: var(--wambss-copper-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.45);
  }

  .mobile-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.2s;
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
  }

  .mobile-phone-btn i {
    color: var(--wambss-blue);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
  }

  .mobile-phone-btn:hover { color: rgba(255, 255, 255, 0.85) !important; }

  /* ── Masquage éléments desktop ── */
  .navbar-toggle { display: block; }
  .navbar-contact-info { display: none; }
  .btn-cta-nav { display: none !important; }

  .hero-title { font-size: var(--text-4xl); }
}

/* Masquer les éléments mobile-only sur desktop */
@media (min-width: 993px) {
  .mobile-menu-header,
  .mobile-menu-cta { display: none !important; }
}

.navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.navbar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === UTILITAIRES === */
.text-center { text-align: center; }
.mb-8 { margin-bottom: var(--space-8); }
.d-none { display: none; }
@media (min-width: 992px) { .d-lg-flex { display: flex; } }
@media (min-width: 576px) { .d-sm-flex { display: flex; } }
