/* Page ville (backend/netfood/menus/templates/menus/zone_page.html), servie a tous.
   Tokens et navbar/footer viennent de common.css. */

body { line-height: 1.6; }

.zone { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 1.5rem 4rem; }

/* ========== FIL D'ARIANE ========== */
.zone-crumbs { padding: 1.25rem 0 0; font-size: 0.875rem; }
.zone-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; color: var(--text-secondary); }
.zone-crumbs li + li::before { content: "›"; margin-right: 0.5rem; }
.zone-crumbs a { color: var(--text-secondary); }
.zone-crumbs a:hover { color: var(--primary-ink); }

/* ========== HERO ========== */
.zone-hero { padding: 3rem 0 3.5rem; max-width: 48rem; }
.zone-hero h1 {
  font-size: clamp(1.875rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 1rem; text-wrap: balance;
}
.zone-lead { font-size: 1.125rem; color: var(--text-secondary); max-width: 60ch; margin-bottom: 1.25rem; }
.zone-proof { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin-bottom: 1.75rem; }
.zone-proof li {
  padding: 0.375rem 0.875rem; border-radius: 999px; font-size: 0.9375rem;
  background: var(--accent-2-light); color: var(--accent-2);
}
.zone-proof strong { font-weight: 700; }
.zone-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* ========== GRILLE ========== */
.zone-grid {
  display: grid; gap: 1.25rem; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.zone-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.zone-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-hover); transform: translateY(-3px); }
.zone-card:focus-within { box-shadow: var(--shadow-md); border-color: var(--primary); }
/* Logo du restaurant : formes de l'app (RestaurantLogo.module.css), centre sur fond neutre. */
.zone-visual {
  aspect-ratio: 4 / 3; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
}
.zone-logo { width: 64%; height: auto; aspect-ratio: 1; max-width: 120px; object-fit: cover; display: block; }
.zone-logo-circle { border-radius: 50%; }
.zone-logo-rounded { border-radius: 22%; }
.zone-logo-square { border-radius: 6px; }
.zone-logo-fallback {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); color: var(--text-tertiary);
}
.zone-logo-fallback svg { width: 45%; height: 45%; }
.zone-body { padding: 0.875rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.zone-body h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
/* Lien etire : toute la carte est cliquable, sans second lien dans le markup. */
.zone-body h3 a { color: var(--text); text-decoration: none; }
.zone-body h3 a::after { content: ""; position: absolute; inset: 0; }
.zone-body h3 a:focus-visible { outline: none; }
.zone-address { font-size: 0.8125rem; color: var(--text-secondary); }
.zone-address { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zone-badge {
  align-self: flex-start; margin-top: 0.375rem; padding: 0.125rem 0.625rem; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; background: var(--accent-2-light); color: var(--accent-2);
}
.zone-empty { color: var(--text-secondary); padding: 2rem 0; }

/* ========== SECTIONS DE CONTENU ========== */
.zone-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.2; margin-bottom: 1.5rem; text-wrap: balance; }
.zone-how, .zone-faq { margin-top: 4rem; }
.zone-steps { display: grid; gap: 1.25rem; list-style: none; counter-reset: step; }
.zone-steps li {
  counter-increment: step; padding: 1.5rem; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.zone-steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; margin-bottom: 0.875rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-contrast); font-weight: 700;
}
.zone-steps h3 { font-family: var(--font-body); font-size: 1.0625rem; margin-bottom: 0.375rem; }
.zone-steps p { color: var(--text-secondary); }
.zone-faq { max-width: 46rem; }
.zone-faq details { border-bottom: 1px solid var(--border); }
.zone-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 48px; padding: 0.75rem 0; font-weight: 600; cursor: pointer; list-style: none;
}
.zone-faq summary::-webkit-details-marker { display: none; }
.zone-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary-ink); }
.zone-faq details[open] summary::after { content: "\2212"; }
.zone-faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.zone-faq details p { color: var(--text-secondary); padding: 0 0 1rem; max-width: 60ch; }
.zone-faq-more { padding-top: 1rem; }
.zone-faq-more a { color: var(--primary-ink); font-weight: 600; }

/* ========== BANDEAU RESTAURATEURS ========== */
.zone-cta {
  margin-top: 4rem; text-align: center; padding: 3rem 1.5rem;
  background: var(--primary-light); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.zone-cta h2 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.75rem; text-wrap: balance; }
.zone-cta p { color: var(--text-secondary); max-width: 46ch; margin: 0 auto 1.75rem; }

/* ========== RESPONSIVE ========== */
@media (min-width: 900px) {
  .zone-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .zone-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .zone { padding: 0 1rem 3rem; }
  .zone-hero { padding: 2rem 0 2.5rem; }
  .zone-actions .btn-primary, .zone-actions .btn-secondary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .zone-card { transition: box-shadow 0.25s; }
  .zone-card:hover { transform: none; }
}
