/* GREENBIRDIE — en-tête partagé (extrait de main.css) pour les pages qui n'utilisent pas main.css.
   Mêmes règles que le site : le menu injecté par nav.js s'affiche à l'identique. Variables limitées au menu. */
.nav, .nav-mobile-overlay, #gb-search {
  --dark: #1a1a1a; --dark-green: #1A2F24; --dark-mid: #2c2c2c; --text: #333333; --muted: #6b6b6b; --cream: #faf8f4; --cream-dark: #f0ebe1;
  --white: #ffffff; --border: #e0d8cc; --border-light: #ede8e0; --section-h: clamp(1.5rem, 5vw, 3rem); --max-w: 1120px;
  --radius-sm: 4px; --radius: 8px; --radius-lg: 12px; --shadow-lg: 0 12px 40px rgba(0,0,0,0.12); --nav-h: 72px; --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.65;
}
.nav *, .nav-mobile-overlay *, #gb-search * { box-sizing: border-box; margin: 0; padding: 0; }
.nav a, .nav-mobile-overlay a { color: inherit; }
/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--section-h);
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-mid);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.nav-link:hover, .nav-link.active { color: var(--dark); background: var(--cream); }

.nav-link svg { transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;          /* collé au lien — plus de gap */
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 8px 8px; /* padding-top = 8px joue le rôle du gap */
  padding-top: 12px;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  /* délai à la fermeture : laisse le temps de glisser vers le menu */
  transition-delay: 0s;
  z-index: 300;
}

/* Pont invisible entre le lien et le dropdown — comble le gap résiduel */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  transition-delay: 0s;
}

/* Petit délai à la fermeture pour éviter la disparition accidentelle */
.nav-item .nav-dropdown {
  transition-delay: 80ms;
}

.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav-dropdown a:hover { background: var(--cream); color: var(--dark); }

.nav-dropdown-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px 4px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-green);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
}

.nav-cta:hover { background: #26392f; color: var(--white) !important; }

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: all 0.2s;
}
/* ── Mobile nav overlay ──────────────────────────────────── */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 190;
  padding: calc(var(--nav-h) + 20px) var(--section-h) 40px;
  overflow-y: auto;
}

.nav-mobile-overlay.open { display: block; }

.nav-mobile-overlay ul {
  list-style: none;
}

.nav-mobile-overlay > ul > li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-mobile-overlay a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 400;
}

.nav-mobile-overlay a:hover { color: var(--white); }

.nav-mobile-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 20px 0 6px;
}


@media (max-width: 768px) {
  .nav { --section-h: 1.25rem; }
  .nav-menu, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Search ──────────────────────────────────────────────── */
.nav-search {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  padding: 8px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-search:hover { background: var(--cream-dark); }

#gb-search {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
#gb-search.on { display: flex; }
.gsb-bd {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(4px);
}
.gsb-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  margin: 0 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  overflow: hidden;
}
.gsb-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
#gsb-inp {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--dark);
  background: transparent;
}
#gsb-inp::placeholder { color: var(--muted); }
.gsb-x {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.gsb-x:hover { background: var(--cream-dark); color: var(--dark); }
#gsb-res { max-height: 420px; overflow-y: auto; }
.gsb-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--cream-dark);
  transition: background 0.12s;
  outline: none;
}
.gsb-item:last-child { border-bottom: none; }
.gsb-item:hover, .gsb-item:focus { background: var(--cream-dark); }
.gsb-ttl {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.3;
}
.gsb-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gsb-empty {
  padding: 28px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.gsb-ft {
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted);
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.gsb-ft kbd {
  font-family: var(--font-sans);
  font-size: 11px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}
@media (max-width: 600px) {
  #gb-search.on { padding-top: 0; align-items: flex-start; }
  .gsb-box { margin: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}
