/* zeyi-symfony/assets/styles/pages.css
   Bandeau de titre, cartes plat, blocs des pages intérieures. */

/* ---------- Bandeau de titre ---------- */

.page-header {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  background: var(--dark);
  color: var(--text-on-dark);
}

.page-header__bg {
  position: absolute;
  inset: 0;
}

.page-header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.page-header__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 28, 23, 0.9) 0%, rgba(36, 28, 23, 0.55) 60%, rgba(36, 28, 23, 0.35) 100%);
}

.page-header__content {
  position: relative;
  z-index: 1;
}

.page-header__content .eyebrow {
  color: var(--orange);
}

/* ---------- Cartes plat ---------- */

.dish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dish {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dish:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dish__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.dish__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.dish:hover .dish__media img {
  transform: scale(1.05);
}

.dish__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  flex: 1;
}

.dish__name {
  font-size: 18px;
  font-weight: 700;
}

.dish__text {
  flex: 1;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish__price {
  font-size: 19px;
  font-weight: 700;
  color: var(--orange);
}

/* ---------- Filtre de la page Carte ---------- */

.menu-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 64px;
}

.menu-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.menu-filter__btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.menu-filter__btn.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--orange-contrast);
}

.menu-filter__count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
}

.menu-filter__btn.is-active .menu-filter__count {
  background: rgba(255, 255, 255, 0.22);
  color: var(--orange-contrast);
}

.menu-group[hidden] {
  display: none;
}

/* ---------- Groupes de la page Carte ---------- */

.menu-groups {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.menu-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 32px;
}

.menu-group__count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Blocs info (Où & quand, Contact) ---------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-card {
  overflow: hidden;
}

.info-card__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.info-card__body {
  padding: 32px;
}

.info-card__body h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.info-card__body p {
  color: var(--text-muted);
}

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  margin-top: 6px;
}

.hours dt {
  font-weight: 600;
  color: var(--orange);
}

.hours dd {
  margin: 0;
  text-align: right;
  color: var(--text-muted);
}

/* ---------- Formulaire de contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-panel {
  padding: 40px;
  border-radius: var(--radius-lg);
}

.contact-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.contact-form-fields > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-fields > div:nth-child(3),
.contact-form-fields > button {
  grid-column: 1 / -1;
}

.contact-form-fields label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form-fields input,
.contact-form-fields textarea {
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
}

.contact-form-fields textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-fields input:focus,
.contact-form-fields textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.contact-form-fields button {
  justify-self: start;
}

.contact-form-success {
  padding: 14px 18px;
  background: var(--orange-soft);
  border-radius: var(--radius-sm);
  color: var(--orange-dark);
  font-weight: 600;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-list i {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 14px;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

.contact-social-link .social {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.contact-social-link:hover {
  border-color: var(--orange);
}

/* ---------- Pages légales ---------- */

.legal {
  max-width: 820px;
}

.legal__updated {
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.legal h2 {
  margin: 44px 0 14px;
  font-size: 24px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  line-height: 1.75;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal strong {
  color: var(--text);
}

.legal a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .dish-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .page-header {
    padding: 64px 0;
  }

  .dish-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-panel {
    padding: 28px 22px;
  }

  .contact-form-fields {
    grid-template-columns: 1fr;
  }

  .contact-form-fields > div:nth-child(3),
  .contact-form-fields > button {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .dish-grid {
    gap: 14px;
  }

  .dish__body {
    gap: 4px;
    padding: 12px 12px 14px;
  }

  .dish__name {
    font-size: 15px;
  }

  .dish__text {
    font-size: 12.5px;
  }

  .dish__price {
    font-size: 15px;
  }
}
