/* ==========================================================================
   La Java — brasserie parisienne
   Design clair et plat : fonds crème, aplats de couleur. Le seul dégradé est
   le voile de lisibilité posé sur la photo du hero, jamais un effet décoratif.
   ========================================================================== */

:root {
  --fond: #FDFBF7;
  --fond-alt: #F5F0E6;
  --blanc: #FFFFFF;

  --encre: #1A1614;
  --encre-doux: #5C5650;
  --encre-pale: #8A827A;

  --rouge: #90332F;
  --rouge-fonce: #6F2724;
  --rouge-clair: #F4E6E3;

  --bordure: #E5DED2;
  --bordure-forte: #D5CBBA;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --r: 3px;
  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  /* Repli avant exécution du JS, qui recale ensuite sur la hauteur réelle. */
  --header-h: 4.39rem;
}

/* ------------------------------------------------------------------ Base -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` et non `hidden` : `hidden` ferait de <body> un conteneur de
     défilement, ce qui neutralise `position: sticky` (image privatisation). */
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--rouge); }

button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

sup { font-size: 0.6em; vertical-align: super; line-height: 0; }

:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 200;
  transform: translateY(-120%);
  background: var(--rouge);
  color: var(--blanc);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}
.skip-link:focus { transform: translateY(0); color: var(--blanc); }

/* --------------------------------------------------------------- Boutons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--rouge);
  color: var(--blanc);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--rouge-fonce); color: var(--blanc); }

.btn--primary { background: var(--rouge); }
.btn--primary:hover { background: var(--rouge-fonce); }

.btn--ghost {
  background: transparent;
  border-color: var(--bordure-forte);
  color: var(--encre);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--encre);
  color: var(--encre);
}

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn__icon { width: 1rem; height: 1rem; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--encre);
  border-bottom: 1px solid var(--bordure-forte);
  padding-bottom: 0.15rem;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.link-arrow:hover { color: var(--rouge); border-color: var(--rouge); }
.link-arrow::after { content: '\2192'; }

/* ------------------------------------------------------- Barre de lecture -- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 120;
  pointer-events: none;
}

/* --------------------------------------------------------------- En-tête -- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--fond);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.header.is-solid { border-bottom-color: var(--bordure); }

.header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__brand { display: flex; align-items: center; flex: none; }
.header__logo { height: 42px; width: auto; }

.nav { flex: 1 1 auto; display: flex; justify-content: center; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--encre);
  padding-block: 0.35rem;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.22s ease;
}
.nav__link:hover { color: var(--rouge); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--rouge); }

.header__actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }

/* Sans cadre : trois traits de largeurs inégales, qui se rejoignent en croix
   avec un léger dépassement. Les écarts valent 7px entre deux centres, d'où
   le translateY de la morphose. */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.25s ease;
}
.burger:hover,
.burger[aria-expanded='true'] { background: rgba(144, 51, 47, 0.07); }

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--encre);
  transition: width 0.3s ease, opacity 0.2s ease, background-color 0.25s ease,
              transform 0.45s cubic-bezier(0.68, -0.28, 0.27, 1.25);
}
.burger span:nth-child(1),
.burger span:nth-child(3) { width: 22px; }
.burger span:nth-child(2) { width: 13px; }

/* Le trait du milieu s'allonge au survol : le menu s'ouvre déjà un peu. */
.burger:hover span:nth-child(2) { width: 22px; }

.burger[aria-expanded='true'] span { background: var(--rouge); }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { width: 0; opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--fond);
  padding: 6rem var(--pad) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  overflow-y: auto;
  /* Le panneau se déroule depuis sous l'en-tête et s'y replie : le `clip-path`
     découvre la feuille au lieu de la faire glisser. La durée doit rester
     alignée sur le `setTimeout` de fermeture dans script.js. */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav.is-open { clip-path: inset(0 0 0 0); }

/* La règle `display` de l'auteur l'emporte sur le `hidden` du navigateur. */
.mobile-nav[hidden] { display: none; }

.mobile-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--bordure);
}
.mobile-nav__list li { border-bottom: 1px solid var(--bordure); }
.mobile-nav__list a {
  display: block;
  padding: 1.1rem 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav.is-open .mobile-nav__list a { opacity: 1; transform: none; }

.mobile-nav__foot { display: grid; gap: 0.85rem; justify-items: center; text-align: center; }
.mobile-nav__tel { font-size: 1.15rem; font-weight: 600; }
.mobile-nav__addr { font-size: 0.9rem; color: var(--encre-doux); }

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

.hero {
  position: relative;
  min-height: max(100svh, 620px);
  display: grid;
  align-content: end;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Voile dégradé : il part du bas, là où se pose le texte, et se dissipe vers
   le haut. La teinte est celle de la marque, jamais un gris. */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--rouge) 92%, transparent) 0%,
    color-mix(in srgb, var(--rouge) 66%, transparent) 30%,
    color-mix(in srgb, var(--rouge) 26%, transparent) 58%,
    transparent 85%
  );
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Photo portrait : sur un écran large le recadrage vise les auvents et la
     terrasse, que le bandeau de texte ne recouvre pas. */
  object-position: 50% 58%;
}

.hero__wrap {
  position: relative;
  padding-block: clamp(6.5rem, 12vw, 8.5rem) clamp(1.5rem, 4vw, 3rem);
}

/* Plus de carte : le texte se pose directement sur le voile. */
.hero__panel { max-width: 760px; }

.hero__title {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  margin-bottom: 1rem;
}
/* « La Java » suit la typographie du titre ; seule la couleur le distingue —
   une teinte claire, seul écart qui reste lisible sur le voile rouge. */
.hero__title em {
  font-style: normal;
  color: var(--rouge-clair);
}

.hero__lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--encre-doux);
  max-width: 46ch;
  margin-bottom: 1.85rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

/* ------------------------------------------------------ Bandeau défilant -- */

.bande {
  background: var(--rouge);
  color: var(--blanc);
  overflow: hidden;
  padding-block: 0.9rem;
}

.bande__track {
  display: flex;
  width: max-content;
  animation: bande-defile 34s linear infinite;
}
/* Une copie de la liste ; le script en ajoute autant que nécessaire. */
.bande__group {
  display: flex;
  flex: none;
}
.bande__group span {
  padding-inline: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* Le décalage vaut exactement une copie, quel que soit leur nombre. */
@keyframes bande-defile {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% / var(--bande-count, 2))); }
}

/* -------------------------------------------------------------- Sections -- */

.section { padding-block: var(--section-y); }

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: 1.15rem;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--encre-doux);
  max-width: 62ch;
}

.section .h2 + .lead { margin-bottom: 2.5rem; }

.section__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
  margin-top: 2.75rem;
}
.section__cta-alt { font-size: 0.94rem; color: var(--encre-doux); }
.section__cta-alt a {
  color: var(--encre);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section__cta-alt a:hover { color: var(--rouge); }

/* ------------------------------------------------- Restaurant — colonnes -- */

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split__body { display: grid; gap: 1.25rem; align-content: start; }
.split__body .h2 { margin-bottom: 0; }

.split__media { position: relative; }

.frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--fond-alt);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

.frame--tilt { aspect-ratio: 5 / 6; }

.frame--small {
  position: absolute;
  right: -0.5rem;
  bottom: -2rem;
  width: 42%;
  aspect-ratio: 1 / 1;
  border: 5px solid var(--fond);
  box-shadow: 0 12px 32px rgba(26, 22, 20, 0.12);
}

/* ---------------------------------------------------------------- Brunch -- */

.buffets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--bordure-forte);
}

.buffet {
  padding: 1.85rem clamp(1rem, 2.5vw, 2rem) 1.85rem 0;
  border-right: 1px solid var(--bordure);
}
.buffet:last-child { border-right: 0; }
.buffet:not(:first-child) { padding-left: clamp(1rem, 2.5vw, 2rem); }

.buffet h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.buffet p { color: var(--encre-doux); font-size: 0.97rem; }

.brunch__note {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bordure);
  color: var(--encre-doux);
  max-width: 62ch;
}

/* ----------------------------------------------------------------- Carte -- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.menu-hero {
  background: var(--rouge);
  text-align: center;
  /* Bande pleine largeur : le haut dégage la hauteur de l'en-tête fixe. */
  padding-top: calc(var(--header-h) + clamp(1.75rem, 4vw, 2.75rem));
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.menu-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--blanc);
}

.menu-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  /* Barre pleine largeur, mais premier onglet aligné sur le contenu du .wrap. */
  padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  padding-block: 0.15rem;
  background: var(--fond);
  border-bottom: 1px solid var(--bordure);
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs[hidden] { display: none; }

.menu-tabs a {
  flex: none;
  padding: 0.6rem 0.15rem;
  margin-right: 1.6rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--encre-doux);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.menu-tabs a:hover { color: var(--encre); }
.menu-tabs a[aria-selected='true'] {
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}

.menu-status {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--fond-alt);
  border: 1px solid var(--bordure);
  border-radius: var(--r);
  color: var(--encre-doux);
}
.menu-status[hidden] { display: none; }
.menu-status p { margin-bottom: 0.85rem; }

.menu-panel[hidden] { display: none; }
.menu-panel { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.menu-panel:focus { outline: none; }

.menu-note,
.category-note {
  max-width: 62ch;
  color: var(--encre-doux);
  font-size: 0.95rem;
}
.menu-note { margin-bottom: 2rem; }
.category-note { margin-top: 0.5rem; }

.menu-categories {
  columns: 2;
  column-gap: clamp(2.5rem, 6vw, 5rem);
}
/* `inline-block` + `break-inside` : sans quoi Chrome coupe les catégories
   en deux entre les colonnes malgré le `break-inside: avoid`. */
.menu-category {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.menu-category h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--bordure-forte);
}

.menu-subcategory {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--encre-pale);
  margin: 1.75rem 0 0.35rem;
}

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

.dish {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--bordure);
}
.dish:last-child { border-bottom: 0; }

.dish-name { font-weight: 500; }
.dish-name + p {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--encre-doux);
}

.dish-price {
  flex: none;
  font-size: 0.95rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--rouge);
  text-align: right;
}

.menu-loading,
.menu-empty {
  padding-block: 3rem;
  color: var(--encre-pale);
}

.menu-book {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--bordure);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.menu-book h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.menu-book p { color: var(--encre-doux); margin-top: 0.5rem; }

/* -------------------------------------------------------- Privatisation -- */

.priva {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.priva__body .lead { margin-bottom: 2.5rem; }

.priva__list {
  margin: 0;
  border-top: 1px solid var(--bordure-forte);
}

.priva__item {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 0.45rem 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--bordure);
}

.priva__item dt {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}
.priva__item dd {
  margin: 0;
  color: var(--encre-doux);
  font-size: 0.95rem;
}

.priva__media {
  position: sticky;
  top: 6.5rem;
}

.priva__figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--fond);
}
.priva__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.priva__caption {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--encre-pale);
}

/* --------------------------------------------------------- Réservation -- */

.resa__frame {
  margin-top: 2.75rem;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r);
  overflow: hidden;
}
.resa__frame iframe {
  display: block;
  width: 100%;
  height: clamp(620px, 78vh, 880px);
  border: 0;
}

.resa__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1.75rem 3.5rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bordure);
}

.resa__phone { display: grid; gap: 0.2rem; }
.resa__phone-label { font-size: 0.85rem; color: var(--encre-pale); }
.resa__phone-number {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--rouge);
}
.resa__phone:hover .resa__phone-number { color: var(--rouge-fonce); }

.resa__hours {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  width: min(100%, 340px);
  font-size: 0.95rem;
}
.resa__hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--bordure);
}
.resa__hours span:first-child { color: var(--encre-doux); }
.resa__hours span:last-child { font-weight: 500; }

/* --------------------------------------------------------------- Galerie -- */

/* Mur maçonné : autant de colonnes que `--cols`, chacune remplie par le script
   qui pose la vignette suivante dans la plus courte. Un `columns` CSS ferait
   un bas très irrégulier : il remplit colonne par colonne au lieu d'équilibrer. */
.gallery {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
  align-items: start;
  max-width: 1400px;
  margin-inline: auto;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-inline: var(--pad);
}

.gallery__col {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
  align-content: start;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--bordure);
  cursor: pointer;
  aspect-ratio: var(--ar, 4 / 3);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery__item:hover img { transform: scale(1.04); }

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 20, 0.2);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery__item:hover::after { opacity: 1; }

/* ----------------------------------------------------------------- Info -- */

.info { display: grid; gap: 2.5rem; }

.info__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--bordure-forte);
}

.info__block {
  padding: 1.6rem clamp(1rem, 2.5vw, 1.75rem) 1.6rem 0;
  border-right: 1px solid var(--bordure);
}
.info__block:last-child { border-right: 0; padding-right: 0; }
.info__block:not(:first-child) { padding-left: clamp(1rem, 2.5vw, 1.75rem); }

.info__block h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--encre-pale);
  margin-bottom: 0.75rem;
}
.info__block p { font-size: 0.97rem; }
.info__block a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.info__block a:hover { color: var(--rouge); }
.info__hint { margin-top: 0.5rem; font-size: 0.85rem; color: var(--encre-pale); }
.info__link { margin-top: 0.75rem; }

.info__map {
  border: 1px solid var(--bordure);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--fond-alt);
}

.info__map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 42vh, 440px);
  border: 0;
}

/* ------------------------------------------------------------- Page légale -- */

.legal {
  padding-top: clamp(8rem, 14vw, 11rem);
  max-width: 780px;
}
.legal .h2 { margin-bottom: 0.85rem; }
.legal .lead { margin-bottom: 3rem; }

.legal h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.6rem;
}
.legal p { color: var(--encre-doux); }
.legal a { color: var(--rouge); text-decoration: underline; text-underline-offset: 3px; }

/* Champs à renseigner avant mise en ligne — à retirer une fois complétés. */
.legal__todo {
  padding: 0.05em 0.4em;
  border-radius: 3px;
  background: var(--rouge-clair);
  color: var(--rouge);
  font-weight: 500;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-weight: 500;
  color: var(--encre);
  border-bottom: 1px solid var(--bordure-forte);
  padding-bottom: 0.2rem;
}
.legal__back:hover { color: var(--rouge); border-color: var(--rouge); }

/* --------------------------------------------------- Bandeau groupe JBG -- */

/* La photo ne sert que de matière sous un voile rouge : elle donne du relief
   à la fin de page sans y introduire une couleur étrangère, la section
   précédente et le footer étant déjà des aplats rouges. */
.groupe {
  position: relative;
  overflow: hidden;
  text-align: center;
}

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

/* L'image a un ciel très clair : c'est l'opacité du voile, pas la photo, qui
   garantit le blanc du texte. Mesuré sur le fichier réel : 80 % donne 4,89:1
   au pire pixel, soit au-dessus du seuil AA de 4,5. En dessous de 78 %, le
   contraste passe sous le seuil. */
.groupe__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--rouge) 80%, transparent);
}

/* Au-dessus du voile, qui est en position absolue. */
.groupe__inner { position: relative; }
.groupe__lead { margin: 0 auto clamp(1.75rem, 3.5vw, 2.4rem); max-width: 44ch; }
.groupe__cta { display: flex; justify-content: center; }

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

.footer {
  background: var(--rouge);
  color: var(--blanc);
  /* L'avant-dernière section est rouge elle aussi : ce filet marque la limite. */
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__logo {
  height: 44px;
  width: auto;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(1);
}

.footer__brand p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }

.footer__nav { display: grid; gap: 0.6rem; align-content: start; }
.footer__nav a { font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.footer__nav a:hover { color: var(--blanc); }

.footer__contact p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.footer__contact p + p { margin-top: 0.85rem; }
.footer__contact a { font-weight: 600; color: var(--blanc); font-size: 1.05rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer__bottom a { color: rgba(255, 255, 255, 0.7); }
.footer__bottom a:hover { color: var(--blanc); }

.footer--short { padding-top: 0; }

/* ------------------------------------------------------------- Lightbox -- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #14100F;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; }

/* La règle `display` de l'auteur l'emporte sur le `hidden` du navigateur. */
.lightbox[hidden] { display: none; }

.lightbox__stage {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 76svh;
  width: auto;
  object-fit: contain;
  border-radius: var(--r);
  animation: lb-in 0.3s ease;
}

@keyframes lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Seul le compteur subsiste : la légende reprenait l'`alt` de la photo, déjà
   lu par les lecteurs d'écran, et alourdissait la vue sous l'image. */
.lightbox__caption {
  font-size: 0.9rem;
  text-align: center;
}
.lightbox__count { color: rgba(255, 255, 255, 0.45); font-variant-numeric: tabular-nums; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--blanc);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}
.lightbox__close svg,
.lightbox__nav svg { width: 20px; height: 20px; }

.lightbox__close { top: clamp(1rem, 3vw, 1.75rem); right: clamp(1rem, 3vw, 1.75rem); }
.lightbox__nav--prev { left: clamp(0.75rem, 3vw, 1.75rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(0.75rem, 3vw, 1.75rem); top: 50%; transform: translateY(-50%); }

/* ------------------------------------------- Texte blanc sur aplat rouge -- */

/* Deux contextes : les sections en aplat et le panneau du hero, posé sur son
   voile. Les jetons sont redéfinis sur le conteneur, si bien que titres,
   paragraphes et filets s'inversent d'eux-mêmes, sans règle par bloc. Ce bloc
   vient après les composants pour l'emporter à spécificité égale. */
.section--rouge,
.hero__panel {
  color: var(--blanc);
  --encre: var(--blanc);
  --encre-doux: rgba(255, 255, 255, 0.82);
  --encre-pale: rgba(255, 255, 255, 0.62);
  --bordure: rgba(255, 255, 255, 0.2);
  --bordure-forte: rgba(255, 255, 255, 0.36);
  /* Le fond des cadres : crème sur blanc, il vire au blanc translucide ici —
     c'est ce qu'on voit sous la carte pendant que l'iframe se charge. */
  --fond-alt: rgba(255, 255, 255, 0.08);
}
.section--rouge { background: var(--rouge); }

/* Un bouton rouge disparaîtrait sur aplat rouge : il s'inverse. La règle de
   survol porte trois classes, sans quoi le `a:hover` ci-dessous l'emporterait
   sur la couleur du texte et donnerait du blanc sur blanc. */
.section--rouge .btn--primary,
.hero__panel .btn--primary { background: var(--blanc); color: var(--rouge); }
.section--rouge .btn--primary:hover,
.hero__panel .btn--primary:hover { background: var(--rouge-clair); color: var(--rouge); }

/* Le survol rouge global serait illisible ici ; c'est le filet qui le marque. */
.section--rouge a:hover,
.hero__panel a:hover { color: var(--blanc); }
.section--rouge .section__cta-alt a:hover,
.section--rouge .info__block a:hover { text-decoration-color: rgba(255, 255, 255, 0.45); }
.hero__panel .link-arrow:hover { color: var(--blanc); border-color: rgba(255, 255, 255, 0.6); }

.section--rouge .resa__phone-number { color: var(--blanc); }
.section--rouge .resa__phone:hover .resa__phone-number { color: rgba(255, 255, 255, 0.78); }

.section--rouge :focus-visible,
.hero__panel :focus-visible { outline-color: var(--blanc); }

/* ------------------------------------------------------ Apparition douce -- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------- Mouvement réduit -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bande__track { animation: none; }
}

/* ------------------------------------------------------------ Responsive -- */

@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: flex; }

  .hero__lead { max-width: none; }

  .split { grid-template-columns: 1fr; gap: 3.5rem; }
  .split__media { max-width: 520px; }

  .priva { grid-template-columns: 1fr; gap: 3rem; }
  .priva__media { position: static; }
  .priva__figure { aspect-ratio: 16 / 10; }

  .info__grid { grid-template-columns: repeat(2, 1fr); }
  .info__block:nth-child(2) { border-right: 0; padding-right: 0; }
  .info__block:nth-child(3),
  .info__block:nth-child(4) { border-top: 1px solid var(--bordure); }
  .info__block:nth-child(4) { border-right: 0; padding-right: 0; }

  .gallery { --cols: 2; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 4.51rem; }
  .header__logo { height: 36px; }
  .header__actions .btn { display: none; }

  .hero__wrap { padding-block: 5.5rem 1.25rem; }
  .hero__panel { max-width: none; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 1.35rem; }
  .hero__cta .btn { width: 100%; }
  .hero__cta .link-arrow { align-self: center; }

  .buffets { grid-template-columns: 1fr; }
  .buffet {
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--bordure);
  }
  .buffet:not(:first-child) { padding-left: 0; }
  .buffet:last-child { border-bottom: 0; }

  .menu-categories { columns: 1; }

  .menu-book { flex-direction: column; align-items: stretch; }
  .menu-book .btn { width: 100%; }

  .dish { gap: 1rem; }

  .priva__item { grid-template-columns: 1fr; gap: 0.35rem; }

  .resa__frame iframe { height: 1000px; }

  .info__grid { grid-template-columns: 1fr; }
  .info__block,
  .info__block:nth-child(n) {
    padding: 1.4rem 0;
    border-right: 0;
    border-top: 0;
  }
  .info__block { border-bottom: 1px solid var(--bordure); }
  .info__block:last-child { border-bottom: 0; }

  .info__map iframe { height: 360px; }

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

  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__stage img { max-height: 66svh; }
}

/* --------------------------------------------------------------- Impression -- */

@media print {
  .header, .bande, .progress, .lightbox, .info__map, .mobile-nav { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}
