/* Maquette C, Sole : Alger la Blanche, ciel bleu, arcades et soleil bordeaux. */
:root {
  --white: #fbf8f4;
  --surface: #ffffff;
  --beige: #e7dfd4;
  --ink: #231a1c;
  --muted: #665a57;
  --line: #e4ddd6;
  --bordeaux: #930321;
  --bordeaux-deep: #74021a;
  --bleu: #96b7d9;
  --bleu-pale: #dfe9f4;
  --pistache: #aea434;
  --pistache-pale: #ecead0;
  --pistache-ink: #4f4910;
  --open: #24572e;
  --closed: #8c2f12;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Red Hat Text", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--white); padding: 8px 12px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-primary { background: var(--bordeaux); color: var(--white); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(35, 26, 28, 0.2); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: rgba(35, 26, 28, 0.2); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--bordeaux-deep); }
  .btn-secondary:hover { border-color: rgba(35, 26, 28, 0.45); }
}

.logo { display: block; line-height: 0; }
.logo img { width: 260px; height: auto; }

/* Ciel et en-tête */
.sky { background: var(--bleu); padding-bottom: 88px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-link { text-decoration: none; font-weight: 600; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .header-link:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* Hero */
.hero { padding-top: clamp(16px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: end; }
.hero-title { font: 800 clamp(44px, 6.2vw, 88px)/0.95 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.hero-intro { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 34em; margin-top: 22px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-visual { position: relative; justify-self: center; width: min(100%, 400px); }
.hero-sun {
  position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: var(--bordeaux); right: -14%; top: -6%;
}
.arch {
  position: relative; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 999px 999px 12px 12px;
  border: 8px solid var(--white);
}

/* Infos pratiques */
.infos { position: relative; margin-top: -56px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  box-shadow: 0 1px 2px rgba(35, 26, 28, 0.06), 0 8px 24px -12px rgba(35, 26, 28, 0.18);
}
.tile-title { font: 700 18px/1.2 var(--display); margin-bottom: 10px; }
.tile address { font-style: normal; }
.tile-link { display: inline-block; margin-top: 10px; font-weight: 600; text-underline-offset: 3px; color: var(--bordeaux); }
.tile-tel { display: block; font: 700 22px/1.15 var(--display); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--bordeaux); }
.tile-tel + p { margin-top: 6px; color: var(--muted); }
.status {
  display: inline-flex; gap: 6px; align-items: baseline; margin-bottom: 10px;
  padding: 3px 8px; border-radius: 4px; font-size: 14px; background: var(--bleu-pale);
}
.status strong { font-weight: 700; }
.status[data-open="true"] strong { color: var(--open); }
.status[data-open="false"] strong { color: var(--closed); }
.hours { display: grid; gap: 4px; font-size: 15px; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; }
.hours dd { font-variant-numeric: tabular-nums; color: var(--muted); }
.hours-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
@media (hover: hover) and (pointer: fine) {
  .tile-tel:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
}

/* Arcades */
.arcade { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); margin-top: clamp(56px, 8vw, 96px); }
.arcade img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 12px 12px; }
.arcade img:nth-child(2) { transform: translateY(32px); }

/* Carte */
.menu { padding-block: clamp(72px, 9vw, 120px) clamp(56px, 8vw, 96px); }
.menu-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.menu-title { font: 800 clamp(48px, 6vw, 80px)/0.95 var(--display); letter-spacing: -0.04em; }
.menu-note { color: var(--muted); }

.filter-bar { position: sticky; top: 0; z-index: 10; background: var(--white); padding-block: 12px; margin-top: 16px; }
.filters {
  display: inline-flex; gap: 2px; padding: 4px; border-radius: 10px; background: var(--beige);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; appearance: none; border: 0; background: transparent; color: var(--muted);
  font: 600 15px/1 var(--text); padding: 10px 14px; border-radius: 7px; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms var(--ease-out);
}
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(35, 26, 28, 0.14); }
@media (hover: hover) and (pointer: fine) {
  .filters button[aria-pressed="false"]:hover { color: var(--ink); }
}

.menu-pizzas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-top: 16px; }
.menu-autres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
.cat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 20px 4px;
  scroll-margin-top: 80px;
}
.cat[hidden] { display: none; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.cat-title { font: 700 22px/1.2 var(--display); letter-spacing: -0.015em; }
.cat-count { font-size: 14px; color: var(--muted); }
.items { list-style: none; margin: 0; padding: 0; }
.item { padding: 14px 0; }
.item + .item { border-top: 1px solid var(--line); }
.item[hidden] { display: none; }
.item-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.item-name { font: 600 19px/1.25 var(--display); letter-spacing: -0.01em; }
.item-leader { display: none; }
.item-price { font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-ing { color: var(--muted); font-size: 15px; margin-top: 3px; max-width: 44ch; }
.item-tag {
  display: inline-block; margin-top: 8px; padding: 2px 7px; border-radius: 4px;
  background: var(--pistache-pale); color: var(--pistache-ink); font-size: 13px; font-weight: 600;
}
.cat-simple .item { padding: 11px 0; }
.cat-simple .item-name { font-size: 17px; }
.filter-empty { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; }

/* Avis */
.reviews { background: var(--bleu-pale); padding-block: clamp(40px, 6vw, 64px); }
.reviews-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.reviews-list { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.reviews-title { font: 800 clamp(36px, 4.4vw, 56px)/1 var(--display); letter-spacing: -0.035em; }

/* Pied de page */
.site-footer { background: var(--bleu); padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 24px; align-items: start; padding-bottom: 32px; }
.footer-logo { width: 150px; height: auto; }
.footer-grid a { text-underline-offset: 3px; }
.socials { display: flex; gap: 8px; }
.social-link {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.social-link:active { transform: scale(0.95); }
.icon { width: 20px; height: 20px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .social-link:hover { background: var(--surface); }
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid rgba(35, 26, 28, 0.2); font-size: 13px; }

.callbar { display: none; }

/* Premier affichage : le soleil se lève une fois derrière l'arcade */
@media (prefers-reduced-motion: no-preference) {
  .hero-sun { animation: leve 1100ms var(--ease-out) 150ms both; }
  .arch { animation: apparait 600ms var(--ease-out) both; }
}
@keyframes leve { from { transform: translateY(40%); opacity: 0; } }
@keyframes apparait { from { opacity: 0; transform: scale(0.97); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .logo img { width: 200px; }
  .header-link, .header-call { display: none; }
  .header-link[href="#carte"] { display: inline; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 72%; justify-self: start; margin-top: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tiles { grid-template-columns: 1fr; }
  .arcade { grid-template-columns: 1fr 1fr; }
  .arcade img:nth-child(3) { display: none; }
  .menu-pizzas, .menu-autres { grid-template-columns: 1fr; }
  .cat { padding-inline: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; inset: auto 0 0 0; z-index: 20;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
  }
}
