/* ==========================================================================
   Panoramix – comic / lagoon theme
   ========================================================================== */

/* Fonts are self-hosted (latin subset, from Fontsource) so no visitor data
   goes to Google. Licence: SIL Open Font License 1.1, see assets/fonts/README.md. */
@font-face {
  font-family: "Lobster";
  src: url("../assets/fonts/lobster-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Luckiest Guy";
  src: url("../assets/fonts/luckiest-guy-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1B1B1B;
  --paper: #FFF6E0;
  --yellow: #FFC93C;
  --lagoon: #0B7373;
  --red: #C7361C;
  --muted: #4A4A4A;
  --white: #FFFFFF;

  --font-body: "Nunito", system-ui, sans-serif;
  --font-comic: "Luckiest Guy", "Impact", cursive;
  --font-brand: "Lobster", "Brush Script MT", cursive;

  --border: 4px solid var(--ink);
  --radius: 22px;
  --shadow: 6px 6px 0 var(--ink);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--lagoon);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn--red { background: var(--red); color: var(--white); }
.btn--yellow { background: var(--yellow); }
.btn--light { background: var(--white); font-size: 17px; padding: 12px 20px; }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); }

/* Phone icon on every call button, tinted with the button's text color */
.btn[href^="tel:"]::before {
  content: "";
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__logo {
  width: 76px;
  height: auto;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}
.brand__name {
  font-family: var(--font-brand);
  font-size: 38px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav > a:not(.btn) {
  padding: 12px;
  font-weight: 800;
  text-decoration: none;
}
.site-nav > a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 3px; }

/* ---------- Hero ---------- */

.hero-wrap { padding-block: 8px 48px; }

.hero {
  position: relative;
  overflow: hidden;
  background: #9AD8F5;
  border: var(--border);
  border-radius: 28px;
  box-shadow: 10px 10px 0 var(--ink);
}

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

.hero__content {
  position: relative;
  min-height: 560px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(20px, 5vw, 64px);
}

.bubble {
  margin: 0;
  align-self: flex-start;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  font-weight: 800;
}

.hero__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  padding: 10px 18px;
  font-size: 18px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.status:hover { text-decoration: underline; }
.status__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #9A9A9A;
}
.status.is-open .status__dot { background: #2E9E4F; }
.status.is-soon .status__dot { background: #F2A93B; }
.status.is-closed .status__dot { background: var(--red); }

.hero__title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 136px);
  line-height: 1.05;
  color: var(--ink);
  -webkit-text-stroke: 8px var(--paper);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--white);
}

.hero__lead {
  max-width: 580px;
  padding: 12px 18px;
  font-size: clamp(17px, 1.8vw, 21px);
  border-radius: 16px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Photos ---------- */

.polaroids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.polaroid {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.polaroid figcaption { padding: 12px 16px; font-weight: 800; }
.polaroid img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: var(--border);
}
.polaroid img.polaroid__img--burger { object-position: 50% 62%; }
.polaroid img.polaroid__img--paella { object-position: 50% 30%; }
.polaroid--tilt-left { transform: rotate(-1.5deg); }
.polaroid--tilt-right { transform: rotate(1deg); }
.polaroid--tilt-slight { transform: rotate(-0.5deg); }

.polaroid__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 14px;
  background: var(--red);
  color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(3deg);
}

/* ---------- Section titles ---------- */

.section-title {
  margin: 0;
  font-family: var(--font-comic);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
}
.section-title--light {
  font-size: clamp(44px, 6vw, 72px);
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
}

/* ---------- Menu ---------- */

.menu {
  background: var(--lagoon);
  border-block: var(--border);
  padding-block: 72px;
  scroll-margin-top: 0;
}

.menu__intro {
  margin: 8px 0 36px;
  color: var(--paper);
  font-size: 20px;
  font-weight: 600;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

.menu-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.menu-card__title {
  margin: 0;
  font-family: var(--font-comic);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.5px;
  color: var(--red);
}

.menu-card__list { list-style: none; margin: 0; padding: 0; }

.dish {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-block: 10px;
  border-top: 2px dashed var(--ink);
}
.dish p { margin: 0; }
.dish__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 18px;
}
.dish__desc { font-size: 15px; color: var(--muted); }
.dish__price { font-weight: 800; font-size: 17px; white-space: nowrap; }

.star {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.8-4.9 4.5 1.3 6.5L12 17.1l-5.9 3.2 1.3-6.5L2.5 9.3l6.6-.8z' fill='%23FFC93C' stroke='%231B1B1B' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.menu-card__note {
  margin: auto 0 0;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Full menu page (carte.html) ---------- */

.menu--page { border-bottom: 0; padding-block: 48px 72px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.chips a {
  padding: 8px 16px;
  font-weight: 800;
  text-decoration: none;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}
.chips a:hover { background: var(--yellow); }

.menu__grid--full { align-items: start; }
.menu__grid--full .menu-card { scroll-margin-top: 24px; }

/* Masonry: js/masonry.js sets each card's row span from its height so cards
   of different heights pack together instead of leaving gaps in grid rows.
   Without JS, the plain grid above still works. */
.menu__grid--full.is-masonry {
  grid-auto-rows: 4px;
  row-gap: 0;
}
.menu__grid--full.is-masonry .menu-card { margin-bottom: 28px; }

.menu-card__lead { margin: -4px 0 0; font-weight: 600; color: var(--muted); }

.menu-card__sub {
  margin: 14px 0 0;
  font-family: var(--font-comic);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.5px;
  color: var(--lagoon);
}
.menu-card__sub--first { margin-top: 0; }

/* Inline list separated by middle dots (sauces). The dot is attached to the
   end of each item so a wrapped line never starts with one. */
.inline-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  line-height: 1.7;
}
.inline-list li { white-space: nowrap; }
.inline-list li:not(:last-child)::after {
  content: "\00B7";
  margin-inline: 0.5em;
  font-weight: 800;
  color: var(--lagoon);
}

.menu__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.menu__footer p { margin: 0; color: var(--paper); font-weight: 600; }

/* ---------- Hours & access ---------- */

.info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  padding-block: 72px;
}

.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
}

.hours {
  flex: 1 1 420px;
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 8px 8px 0 var(--ink);
}

.hours__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
/* Luckiest Guy sits high in its line box: nudge it so it centers with the badge */
.hours__head .section-title {
  line-height: 1;
  padding-top: 0.14em;
}

.badge {
  padding: 8px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  background: var(--paper);
}
.badge.is-open { background: var(--lagoon); color: var(--white); }
.badge.is-soon { background: var(--yellow); color: var(--ink); }
.badge.is-closed { background: var(--red); color: var(--white); }

.hours__list { list-style: none; margin: 0; padding: 0; }
.hours__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  font-size: 18px;
  border-bottom: 2px solid #EFE4C8;
  border-radius: 10px;
}
.hours__list li > span:first-child { font-weight: 800; }
.hours__list li > span:last-child { text-align: right; }
.hours__list li.is-today { background: var(--yellow); }

.info__side {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.call-box {
  padding: 28px 32px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 28px;
}
.call-box p { margin: 0 0 16px; font-size: 22px; font-weight: 800; }

.address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  font-size: 18px;
}
.address__lines { margin: 0; }
.address__link { align-self: flex-start; margin-top: 6px; }

/* Map-pin icon before "Itinéraire", tinted with the button's text color */
.address__link::before {
  content: "";
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.socials { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 32px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
}
.site-footer p { margin: 0; }
.nowrap { white-space: nowrap; }
.site-footer a { color: var(--yellow); }
.brand__name--footer { font-size: 30px; color: var(--yellow); }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .container { padding-inline: 16px; }
  .brand__logo { width: 56px; }
  .brand__name { font-size: 32px; }
  .site-nav > a:not(.btn) { padding: 12px 8px; }

  .hero { box-shadow: 6px 6px 0 var(--ink); border-radius: 22px; }
  .hero__content { min-height: 640px; justify-content: flex-end; padding-bottom: 36px; }
  .hero__tag { font-size: 16px; padding: 8px 14px; }
  .hero__tag-sep { display: none; }
  .hero__tag > span:first-child { flex-basis: 100%; }
  .polaroid img { height: 240px; }
  .hero__title { -webkit-text-stroke-width: 6px; text-shadow: 4px 4px 0 var(--white); }

  .menu, .info { padding-block: 56px; }
  .menu-card { padding: 20px; }
  .call-box { padding: 22px; }
  .call-box p { font-size: 19px; }
  .section-title { font-size: 42px; }
}

@media (max-width: 480px) {
  /* Keep the header on one line: the hero already links to the menu and hours */
  .site-nav > a:not(.btn) { display: none; }
}
