/* ─────────────────────────────────────────────────────────────
   BROCANTES NORD — Styles partagés
   ───────────────────────────────────────────────────────────── */

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

:root {
  /* ── Palette principale ── */
  --black:    #26311D;
  --white:    #FFFFFF;
  --cream:    #F7F6F0;
  --accent:   #4C7546;
  --sand:     #EDC592;

  /* ── Gris neutres chauds ── */
  --gray-50:  #F5F5F3;
  --gray-100: #EAEAE7;
  --gray-200: #D8D7D3;
  --gray-300: #BFBEBB;
  --gray-400: #96958F;
  --gray-500: #68675F;
  --gray-700: #3C3B37;
  --gray-900: #26311D;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

h1, h2, h3, h4 {
  font-family: 'Instrument Serif', serif;
  letter-spacing: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  background: var(--cream);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

/* ── NAVIGATION ────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(247,246,240,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 48px;
}

.nav-logo-mark {
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  color: var(--white);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.nav-wordmark {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.04em;
}

.nav-logo-img {
  height: 30px;
  width: auto;
  display: block;
}

/* Titre accessible/SEO masqué visuellement */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 180ms;
  letter-spacing: -0.01em;
}

.nav-links a:hover  { color: var(--black); }
.nav-links a.active { color: var(--black); font-weight: 500; }

.nav-cta { flex-shrink: 0; }
.nav-link-submit { display: none; }
/* Onglet Carte masqué sur desktop (doublon avec la carte de la page Brocantes) */
.nav-links a[href="carte.html"],
.footer-links a[href="carte.html"] { display: none; }

.btn-submit {
  height: 36px;
  padding: 0 18px;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 180ms, color 180ms;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-submit:hover { background: var(--accent); color: #fff; }

/* ── CONTAINER ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--black);
  padding: 72px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 56px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 180ms;
  letter-spacing: -0.01em;
}

.footer-links a:hover { color: rgba(255,255,255,0.75); }

.footer-email {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 180ms;
}

.footer-email:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  letter-spacing: -0.01em;
}

/* ── BURGER ────────────────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  margin-left: 12px;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}

nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { height: 60px; overflow: visible; }
  .nav-inner {
    position: relative;
    padding: 0 20px;
    height: 60px;
    gap: 0;
  }
  .nav-logo   { flex: 1; }
  .nav-cta    { display: none; }
  .nav-burger { order: 2; display: flex; }
  .nav-link-submit { display: flex; color: var(--gray-500) !important; font-weight: 500 !important; }
  .nav-links a[href="carte.html"] { display: block; }
  .footer-links a[href="carte.html"] { display: inline-block; }

  /* Dropdown flottant aligné à droite */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: auto;
    width: 200px;
    flex-direction: column;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 6px 0;
    gap: 0;
    z-index: 999;
  }
  .nav-links a {
    padding: 12px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-50);
  }
  .nav-links a:last-child { border-bottom: none; }
  nav.nav-open .nav-links { display: flex; }

  .container,
  .footer-inner       { padding: 0 20px; }
  .footer-top         { flex-direction: column; gap: 36px; }
  .footer-links       { flex-wrap: wrap; gap: 20px; }
}

/* ── BANNIÈRE COOKIES ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 440px;
  margin: 0 auto;
  background: var(--black);
  color: rgba(255,255,255,0.85);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  z-index: 2000;
  font-family: 'Poppins', sans-serif;
  animation: cookieIn 400ms cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 180ms;
}

.cookie-btn:hover { opacity: 0.85; }

.cookie-btn.cookie-accept { background: var(--accent); color: var(--white); }
.cookie-btn.cookie-refuse { background: rgba(255,255,255,0.12); color: var(--white); }

@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
}

