/* ============ Reset & base ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(61, 39, 18, 0.03) 0px,
      rgba(61, 39, 18, 0.03) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  color: var(--color-brand-dark);
}

h1 {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: var(--text-4xl);
  letter-spacing: 0.01em;
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-xl);
}

p {
  margin: 0 0 var(--space-4);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ============ Bannière d'aperçu ============ */
.preview-banner {
  background: var(--charcoal-900);
  color: var(--stone-50);
  text-align: center;
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
  letter-spacing: 0.02em;
}

.preview-banner strong {
  color: var(--wood-400);
}

/* ============ En-tête / nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(28, 23, 17, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(169, 112, 62, 0.35);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.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__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__brand-badge {
  display: flex;
  align-items: center;
  background: var(--stone-50);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  box-shadow: var(--shadow-card);
}

.nav__brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--wood-200);
  padding-block: var(--space-1);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease-organic), border-color 0.2s var(--ease-organic);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--stone-50);
  border-color: var(--color-accent);
}

.nav__links-wrap {
  display: contents;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(243, 241, 230, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--stone-50);
  border-radius: 2px;
  transition: transform 0.2s var(--ease-organic), opacity 0.2s var(--ease-organic);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ Boutons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-organic), box-shadow 0.2s var(--ease-organic),
    background 0.2s var(--ease-organic), color 0.2s var(--ease-organic);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-brand);
  box-shadow: var(--shadow-card);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
}

.btn--outline:hover {
  background: var(--color-brand);
  color: var(--color-on-brand);
}

.btn--sm {
  padding: 0.6rem 1.2rem;
  font-size: var(--text-xs);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-24) var(--space-16);
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 5px
    ),
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(111, 143, 73, 0.28), transparent 60%),
    linear-gradient(165deg, var(--charcoal-900) 0%, var(--wood-900) 100%);
  color: var(--stone-50);
}

.hero h1,
.hero .hero__tagline,
.hero .hero__note {
  color: var(--stone-50);
}

.hero .hero__tagline {
  color: var(--wood-200);
}

.hero .hero__note {
  color: var(--leaf-300);
}

.hero .btn--outline {
  border-color: var(--wood-400);
  color: var(--stone-50);
}

.hero .btn--outline:hover {
  background: var(--wood-400);
  color: var(--charcoal-900);
}

.hero__decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--leaf-500);
  opacity: 0.9;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__tagline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero__note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.hero__art {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--wood-700);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--wood-900);
  color: var(--color-on-brand);
  overflow: hidden;
}

.hero__art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(34, 20, 8, 0.85), transparent);
  pointer-events: none;
}

.hero__art-caption {
  position: relative;
  z-index: 1;
  padding: var(--space-6);
  font-size: var(--text-xs);
  text-align: center;
  color: var(--color-on-brand);
  text-shadow: 0 1px 4px rgba(34, 20, 8, 0.45);
}

/* ============ Sections ============ */
.section {
  padding-block: var(--space-16);
  position: relative;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section--forest {
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(160deg, var(--leaf-900), var(--leaf-700) 140%);
  color: var(--stone-50);
}

.section--forest .eyebrow {
  color: var(--wood-400);
}

.section--forest .eyebrow::before {
  background: var(--wood-400);
}

.section--forest h2 {
  color: var(--stone-50);
}

.section__head {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

/* ============ Cartes / grilles ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.card--feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-top: 4px solid var(--wood-500);
}

.card__icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
}

.section--forest .card--feature {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--wood-400);
  box-shadow: none;
}

.section--forest .card--feature h3 {
  color: var(--stone-50);
}

.section--forest .card--feature p {
  color: var(--leaf-200);
}

.section--forest .card__icon {
  color: var(--wood-400);
}

/* ============ Carte des pizzas ============ */
.menu-category + .menu-category {
  margin-top: var(--space-16);
}

.menu-category__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  border-bottom: 2px solid var(--color-brand);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
}

.menu-category__head h2 {
  margin: 0;
  font-size: var(--text-2xl);
}

.menu-category__subtitle {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-style: italic;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  border-bottom: 1px dashed var(--color-border);
}

.menu-item__info h4 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-lg);
}

.menu-item__info p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.menu-item__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-brand);
  white-space: nowrap;
}

/* ============ Infos pratiques ============ */
.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

.info-strip .card {
  text-align: center;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
}

.hours-table td:first-child {
  font-weight: 700;
  color: var(--color-brand-dark);
  width: 40%;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ============ Histoire ============ */
.prose {
  max-width: 68ch;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.prose p + p {
  margin-top: var(--space-4);
}

.portrait-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-blob);
  border: 6px solid var(--wood-900);
  box-shadow: var(--shadow-soft);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.banner-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--wood-900);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-12);
}

/* ============ Diviseur feuille ============ */
.leaf-divider {
  display: block;
  width: 100%;
  height: 40px;
  color: var(--leaf-300);
  margin-block: calc(var(--space-4) * -1);
}

/* ============ Pied de page ============ */
.site-footer {
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--color-brand-dark);
  color: var(--leaf-200);
  padding-block: var(--space-16) var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__brand {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: var(--text-2xl);
  color: var(--color-on-brand);
  margin-bottom: var(--space-3);
}

.footer__tagline {
  color: var(--leaf-300);
  max-width: 32ch;
}

.footer h4 {
  color: var(--color-on-brand);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.footer a {
  text-decoration: none;
  color: var(--leaf-200);
}

.footer a:hover {
  color: var(--color-on-brand);
}

.footer__bottom {
  border-top: 1px solid rgba(220, 230, 201, 0.15);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--leaf-300);
}

.footer__bottom a {
  color: var(--leaf-300);
}

/* ============ Panier / commande ============ */
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--charcoal-900);
  color: var(--color-on-brand);
  font-size: 0.7rem;
  font-weight: 800;
}

.menu-item__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-add {
  border: 2px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-xs);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s var(--ease-organic), color 0.2s var(--ease-organic);
  white-space: nowrap;
}

.btn-add:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-on-brand);
}

.btn-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sold-out-flag {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-error {
  border: 2px solid var(--accent-600);
  color: var(--accent-600);
  margin-bottom: var(--space-8);
}

.form-error p {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-brand-dark);
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--wood-500);
  outline-offset: 1px;
}

.slot-select {
  font-weight: 700;
  font-size: var(--text-lg);
  padding-block: 0.85rem;
  cursor: pointer;
}

.cart-line__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-lg);
  line-height: 1;
  cursor: pointer;
}

.qty-value {
  min-width: 1.5ch;
  text-align: center;
  font-weight: 700;
}

.cart-line__remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-decoration: underline;
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  border-top: 2px solid var(--color-brand);
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

/* ============ Pages légales ============ */
.legal-content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
}

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

.placeholder-flag {
  background: var(--color-accent-soft);
  color: var(--accent-600);
  padding: 0.1em 0.5em;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85em;
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__art {
    max-width: 360px;
    margin-inline: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links-wrap {
    display: block;
    flex-basis: 100%;
    order: 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s var(--ease-organic);
  }

  .nav__links-wrap.is-open {
    max-height: 320px;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid rgba(243, 241, 230, 0.15);
  }

  .nav__links li + li {
    border-top: 1px solid rgba(243, 241, 230, 0.08);
  }

  .nav__links a {
    display: block;
    padding-block: var(--space-3);
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .menu-item {
    flex-direction: column;
    gap: var(--space-1);
  }
}
