/* Aux Gourmandises — site vitrine (mobile d'abord) */

:root {
  --cream: #f8f1e6;
  --paper: #fffaf3;
  --ink: #2a1c13;
  --ink-soft: #6b5546;
  --crust: #8c4a22;
  --crust-dark: #6e3816;
  --gold: #d9a441;
  --line: #e7d9c4;
  --open: #2f7d4a;
  --soon: #b45f06;
  --closed: #b3261e;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --dock-h: 64px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}

img { max-width: 100%; display: block; }
a { color: var(--crust); }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 7vw, 2.4rem); margin-bottom: 18px; }
p { margin: 0 0 1em; }

.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ---------- Bandeau d'annonce ---------- */
.notice {
  background: var(--crust);
  color: #fff;
  text-align: center;
  padding: 10px var(--gutter);
  font-size: .95rem;
  font-weight: 500;
}

/* ---------- Couverture ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  /* Bandeau court : voile sur toute la hauteur pour que le texte reste lisible
     même sur une photo claire. */
  background: linear-gradient(to top, rgba(28,16,8,.85) 0%, rgba(28,16,8,.6) 60%, rgba(28,16,8,.5) 100%);
}
.hero--plain {
  background:
    radial-gradient(120% 70% at 80% 10%, #c98a4b 0%, transparent 60%),
    radial-gradient(90% 60% at 10% 90%, #5a2d12 0%, transparent 70%),
    #7a3f1b;
}
.hero--plain::after { background: linear-gradient(to top, rgba(28,16,8,.55), transparent 70%); }

.hero__content {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px var(--gutter) 28px;
}
.hero__title {
  /* Toujours sur une ligne : la taille suit la largeur de l'écran
     (le nom fait ~10,3 fois la taille de police avec une police serif large). */
  font-size: min(calc((100vw - 2 * var(--gutter)) / 10.8), 4.2rem);
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.hero__tagline {
  font-size: 1.1rem;
  opacity: .92;
  margin: 4px 0 16px;
}

/* ---------- Pastille ouvert / fermé ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .9rem; font-weight: 600;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
/* Vert = ouvert · orange = ferme dans 30 min ou moins · rouge = fermé */
.status--open .status__dot { background: #5ee08a; box-shadow: 0 0 0 4px rgba(94,224,138,.25); }
.status--soon .status__dot { background: #ffb02e; box-shadow: 0 0 0 4px rgba(255,176,46,.28); }
.status--closed .status__dot { background: #ff5a4a; box-shadow: 0 0 0 4px rgba(255,90,74,.22); }
.status--inline { background: var(--paper); border: 1px solid var(--line); }
.status--inline.status--open { color: var(--open); }
.status--inline.status--soon { color: var(--soon); }
.status--inline.status--closed { color: var(--closed); }
.status--inline.status--open .status__dot { background: var(--open); box-shadow: 0 0 0 4px rgba(47,125,74,.15); }
.status--inline.status--soon .status__dot { background: var(--soon); box-shadow: 0 0 0 4px rgba(180,95,6,.15); }
.status--inline.status--closed .status__dot { background: var(--closed); box-shadow: 0 0 0 4px rgba(179,38,30,.12); }

/* ---------- Boutons ---------- */
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: #e4b358; }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn--block { display: flex; width: 100%; margin-top: 8px; }
.section--card .btn--primary { background: var(--crust); color: #fff; }
.section--card .btn--primary:hover { background: var(--crust-dark); }

/* ---------- Sections ---------- */
.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px var(--gutter) 8px;
}
.section--card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 56px var(--gutter) 0;
  padding: 32px 22px;
}
@media (min-width: 760px) { .section--card { margin: 64px auto 0; padding: 40px; } }

.eyebrow {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--crust);
  margin-bottom: 8px;
}
.prose { color: var(--ink-soft); font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Galerie ---------- */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery__item:first-child { grid-column: 1 / -1; }
.gallery__link {
  position: relative; display: block;
  border-radius: 14px; overflow: hidden;
  aspect-ratio: 1;
  background: var(--line);
}
.gallery__item:first-child .gallery__link { aspect-ratio: 4 / 3; }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__link:hover img { transform: scale(1.04); }
.gallery__title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(28,16,8,.75));
  color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.3;
}

/* Menus : image entière (pas de recadrage), 2 colonnes, titre dessous */
.gallery--menus { grid-template-columns: repeat(2, 1fr); align-items: start; margin-bottom: 12px; }
.gallery--menus .gallery__item:first-child { grid-column: auto; }
.gallery--menus .gallery__link,
.gallery--menus .gallery__item:first-child .gallery__link { aspect-ratio: auto; background: var(--paper); border: 1px solid var(--line); }
.gallery--menus .gallery__link img { height: auto; }
.gallery--menus .gallery__link:hover img { transform: none; }
.menu__title { margin: 8px 2px 0; font-weight: 600; font-size: .95rem; line-height: 1.3; }

/* ---------- Horaires ---------- */
.closure {
  background: #fbe9e2; color: var(--closed);
  border-radius: 12px; padding: 12px 16px;
}
.hours { margin: 8px 0 16px; border-top: 1px solid var(--line); }
.hours__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours__row--today {
  background: var(--paper);
  border-radius: 12px;
  border-bottom-color: transparent;
  padding-left: 12px; padding-right: 12px;
  margin: -1px -8px 0;
  box-shadow: 0 0 0 1px var(--line);
}
.today {
  display: inline-block; margin-left: 4px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--crust); vertical-align: 2px;
}

/* ---------- Contact ---------- */
.section--contact .eyebrow { margin-bottom: 14px; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact a {
  display: flex; flex-direction: column;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink); text-decoration: none;
}
.contact a:active { background: #f3e7d6; }
.contact__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--crust); }
.stars { color: #e0a526; letter-spacing: .08em; margin-left: 4px; }

/* ---------- Pied de page ---------- */
.footer {
  margin-top: 72px;
  padding: 40px var(--gutter) 32px;
  background: var(--ink); color: #d8c8b8;
  text-align: center; font-size: .9rem;
}
.footer p { margin: 0 0 4px; }
.footer__name { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.legal { max-width: 640px; margin: 18px auto 0; text-align: left; }
.legal summary { cursor: pointer; text-align: center; text-decoration: underline; }
.legal__body { padding-top: 12px; font-size: .85rem; }
.legal__body p { margin-bottom: 6px; }

/* ---------- Barre d'actions fixe (mobile) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex;
  height: calc(var(--dock-h) + env(safe-area-inset-bottom));
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
  background: rgba(255,250,243,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.dock.is-visible { transform: none; }
.dock a {
  flex: 1;
  display: grid; place-items: center;
  border-radius: 12px;
  font-weight: 600; text-decoration: none;
  color: var(--ink);
  background: #f1e5d3;
}
.dock a:first-child { background: var(--crust); color: #fff; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
}

/* ---------- Visionneuse photo ---------- */
.lightbox {
  border: 0; padding: 0;
  max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%;
  background: rgba(15,9,5,.95);
  color: #fff;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15,9,5,.95); }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox__caption { padding: 14px var(--gutter); text-align: center; max-width: 640px; }
.lightbox__caption strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.lightbox { touch-action: pan-y pinch-zoom; }
.lightbox__count { margin: 0 0 12px; font-size: .85rem; opacity: .75; font-variant-numeric: tabular-nums; }
.lightbox__count:empty { display: none; }
.lightbox__nav {
  position: absolute; top: 50%; z-index: 1;
  width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
@media (min-width: 760px) {
  .lightbox__nav { width: 56px; height: 56px; margin-top: -28px; }
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
}
/* Court glissement de la photo dans le sens du geste */
.lightbox img.is-from-right { animation: lb-from-right .22s ease-out; }
.lightbox img.is-from-left { animation: lb-from-left .22s ease-out; }
@keyframes lb-from-right { from { transform: translateX(40px); opacity: .3; } }
@keyframes lb-from-left { from { transform: translateX(-40px); opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .lightbox img.is-from-right, .lightbox img.is-from-left { animation: none; } }
.lightbox__close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer;
}
