/* ==========================================================================
   J.A. CHAPES SÀRL — En-tête et navigation
   --------------------------------------------------------------------------
   Barre fixe du haut, logo, menu bureau, menu mobile,
   bouton hamburger et barre orange de progression.
   ========================================================================== */

/* ==========================================================================
   4. EN-TÊTE / NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Fond qui apparaît une fois qu'on a défilé */
.header.is-scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 0 var(--border);
}

/* Barre orange de progression de lecture */
.header__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* padding-top/bottom uniquement : le padding latéral vient de .container */
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand__logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 5px;
  object-fit: contain;
}

.brand__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}
.brand__name span { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 30px; }

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 1px;
  width: 0;
  background: var(--orange);
  transition: width 0.3s ease;
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { width: 100%; }

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

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.header__phone svg { color: var(--orange); }

/* Bouton hamburger (mobile) */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #fff;
}

/* Panneau du menu mobile */
.mobile-menu {
  display: none;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.mobile-menu.is-open { display: block; }

.mobile-menu__inner { padding: 8px 24px 28px; }

.mobile-menu__link {
  display: block;
  padding: 14px 12px;
  font-size: 17px;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu__link:hover { background: var(--surface); color: var(--orange-soft); }
