/* ============================================================
   NOS ZONES — Design & animations
   Chargé uniquement sur nos-zones.html
   CSS pur — aucune dépendance externe
   ============================================================ */

:root {
  --zone-bm: #00685b;        /* Bordeaux Métropole intra (vert MY RENOV) */
  --zone-couronne: #1e8a78;  /* Couronne ouest (vert clair) */
  --zone-medoc-r: #a06b3b;   /* Médoc viticole & rural (brun-or) */
  --zone-medoc-l: #2c7da0;   /* Médoc littoral & hors-métropole (bleu mer) */
}

/* ===== HERO === intro avec mots-clés ===== */
.nz-hero {
  background: linear-gradient(135deg, #0d2520 0%, #1b1c1c 60%, #003832 100%);
  color: #fff;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.nz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0, 104, 91, 0.4), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(44, 125, 160, 0.3), transparent 50%);
  pointer-events: none;
}
.nz-hero .container { position: relative; z-index: 2; }
.nz-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 1rem 0 1.5rem;
  color: #fff;
}
.nz-hero h1 .accent { color: #6fcfb8; }
.nz-hero .intro {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}
.nz-hero .breadcrumb-nav { margin-bottom: 1rem; }
.nz-hero .breadcrumb { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.nz-hero .breadcrumb li { color: rgba(255,255,255,0.6); }
.nz-hero .breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; }
.nz-hero .breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }

/* ===== CHIFFRES sous le hero ===== */
.nz-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.nz-stat { text-align: center; }
.nz-stat .nz-stat-value {
  display: block;
  font: 800 2.2rem/1 'Manrope', sans-serif;
  color: #6fcfb8;
  font-variant-numeric: tabular-nums;
}
.nz-stat .nz-stat-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.4rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ===== CARTE SVG + LÉGENDE ===== */
.nz-map-section {
  padding: 4.5rem 0 2rem;
  background: linear-gradient(180deg, #fafafa, #fff);
}
.nz-map-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 0.5rem;
  color: #1b1c1c;
}
.nz-map-section .h2-sub {
  text-align: center;
  color: #555;
  margin: 0 0 2.5rem;
  font-size: 1rem;
}
.nz-map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.nz-map-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.10));
}
.nz-map-svg .nz-region {
  fill-opacity: 0.55;
  stroke-width: 2;
  cursor: pointer;
  transition: fill-opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  transform-origin: center;
  transform-box: fill-box;
}
.nz-map-svg .nz-region:hover,
.nz-map-svg .nz-region.is-active {
  fill-opacity: 0.92;
  transform: scale(1.02);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}
.nz-map-svg .nz-region-label {
  pointer-events: none;
  font: 700 0.85rem 'Manrope', sans-serif;
  fill: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.nz-map-svg .nz-city-dot {
  fill: #fff;
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.3s ease, stroke-width 0.3s ease;
}
.nz-map-svg .nz-city-dot:hover,
.nz-map-svg .nz-city-dot.is-active {
  r: 7;
  stroke-width: 3.5;
}
.nz-map-svg .nz-city-name {
  pointer-events: none;
  font: 600 0.62rem 'Manrope', sans-serif;
  fill: #2a2a2a;
}
.nz-map-svg .nz-coast {
  fill: #cce8f0;
}
.nz-map-svg .nz-river {
  stroke: #cce8f0;
  stroke-width: 6;
  stroke-linecap: round;
  fill: none;
  opacity: 0.85;
}

/* Légende */
.nz-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nz-legend-title {
  font: 700 0.85rem 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #888;
  margin-bottom: 0.5rem;
}
.nz-legend-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e6e8e7;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.nz-legend-item:hover,
.nz-legend-item.is-active {
  transform: translateX(4px);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.15);
  border-color: currentColor;
}
.nz-legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nz-legend-text {
  display: flex;
  flex-direction: column;
}
.nz-legend-name {
  font: 700 0.95rem 'Manrope', sans-serif;
  color: #1b1c1c;
}
.nz-legend-count {
  font-size: 0.82rem;
  color: #666;
  margin-top: 2px;
}

/* ===== FILTRES (CHIPS) ===== */
.nz-cities-section {
  padding: 3rem 0 4rem;
  background: #fff;
}
.nz-cities-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  text-align: center;
  margin: 0 0 0.5rem;
  color: #1b1c1c;
}
.nz-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem 0 2.5rem;
}
.nz-chip {
  border: 2px solid #e6e8e7;
  background: #fff;
  color: #1b1c1c;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font: 600 0.88rem 'Manrope', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nz-chip:hover { border-color: #00685b; color: #00685b; }
.nz-chip.is-active {
  background: #00685b;
  border-color: #00685b;
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(0, 104, 91, 0.55);
}
.nz-chip-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ===== GRILLE CARDS VILLES ===== */
.nz-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.nz-city-card {
  position: relative;
  display: block;
  padding: 1.5rem 1.4rem 1.4rem;
  background: #fff;
  border: 1.5px solid #ebeded;
  border-radius: 14px;
  text-decoration: none;
  color: #1b1c1c;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease,
              opacity 0.4s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}
.nz-city-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.nz-city-card[hidden] { display: none; }
.nz-city-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              var(--zone-color, rgba(0,104,91,0.12)), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.nz-city-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--zone-color, #00685b);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nz-city-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.18);
  border-color: var(--zone-color, #00685b);
}
.nz-city-card:hover::before { opacity: 1; }
.nz-city-card:hover::after { transform: scaleX(1); }
.nz-city-card.is-highlighted {
  box-shadow: 0 0 0 3px var(--zone-color, #00685b),
              0 24px 40px -22px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}
.nz-card-zone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 700 0.7rem 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--zone-color, #00685b);
  margin-bottom: 0.6rem;
}
.nz-card-zone::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.nz-card-name {
  font: 700 1.2rem 'Manrope', sans-serif;
  color: #1b1c1c;
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}
.nz-card-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #555;
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
}
.nz-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: 700 0.85rem 'Manrope', sans-serif;
  color: var(--zone-color, #00685b);
  position: relative;
  z-index: 1;
}
.nz-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.nz-city-card:hover .nz-card-link svg { transform: translateX(4px); }
.nz-city-card[data-zone="couronne"] { --zone-color: var(--zone-couronne); }
.nz-city-card[data-zone="medoc-r"] { --zone-color: var(--zone-medoc-r); }
.nz-city-card[data-zone="medoc-l"] { --zone-color: var(--zone-medoc-l); }

/* ===== FAQ ===== */
.nz-faq-section {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #fff, #f4f6f5);
}
.nz-faq-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  text-align: center;
  margin: 0 0 2rem;
  color: #1b1c1c;
}
.nz-faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.nz-faq-item {
  background: #fff;
  border: 1px solid #e6e8e7;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.nz-faq-item[open] { box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.15); }
.nz-faq-item summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font: 700 1rem 'Manrope', sans-serif;
  color: #1b1c1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.nz-faq-item summary::-webkit-details-marker { display: none; }
.nz-faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: #00685b;
  transition: transform 0.3s ease;
}
.nz-faq-item[open] summary::after { transform: rotate(45deg); }
.nz-faq-item .nz-faq-body {
  padding: 0 1.4rem 1.2rem;
  color: #444;
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
  .nz-city-card,
  .nz-city-card::after,
  .nz-map-svg .nz-region,
  .nz-map-svg .nz-city-dot,
  .nz-legend-item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nz-map-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 600px) {
  .nz-hero { padding: 4.5rem 0 3rem; }
  .nz-stats { padding: 1rem; }
  .nz-stat .nz-stat-value { font-size: 1.7rem; }
  .nz-cities-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .nz-city-card { padding: 1.15rem 1rem; }
  .nz-card-name { font-size: 1rem; }
  .nz-card-desc { font-size: 0.82rem; }
}
@media (max-width: 380px) {
  .nz-cities-grid { grid-template-columns: 1fr; }
}
